Yeah. You can just give xcrun swift your swift file as the parameter. You can also put "#!/usr/bin/xcrun swift" at the top of your swift file and make it executable.
On Oct 7, 2014, at 12:05 PM, venky...@gmail.com wrote: xcrun swift is perfect for me. I prefer the command line. Is there a possibility to run code from a file? Sent from my iPhone On 07-Oct-2014, at 8:36 pm, Barry Hadder <bhad...@gmail.com <mailto:bhad...@gmail.com>> wrote: > I have not found playgrounds to be usable with Voiceover. You can find the > output sidebar with the mouse when you have say text under mouse turned on, > but that isn't worth discussing at length. > You can run the swift repl in terminal by typing: xcrun swift > That will bring up lldb in swift repl mode. > If that doesn't work, you will have to make sure that the correct Xcode > version is selected as the environment. > You do this by typing sudo xcode-select -s > /Applications/Xcode.app/Contents/Developer. > You can see what the current environment is by typing xcode-select -p. > > > On Tuesday, October 7, 2014 9:21:21 AM UTC-5, Venkatesh Potluri wrote: > Hi, > I am running the GM build of Xcode. > How can I get voiceOver to read the output after writing a line of code? > I entered the following lines into the playground > var x=4 > x=x+4 > I also tried opening the assistant editor. > Thank you. > Regards, > Venkatesh Potluri > > -- > You received this message because you are subscribed to the Google Groups > "MacVisionaries" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to macvisionaries+unsubscr...@googlegroups.com > <mailto:macvisionaries+unsubscr...@googlegroups.com>. > To post to this group, send email to macvisionaries@googlegroups.com > <mailto:macvisionaries@googlegroups.com>. > Visit this group at http://groups.google.com/group/macvisionaries > <http://groups.google.com/group/macvisionaries>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to a topic in the Google Groups "MacVisionaries" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/macvisionaries/Q-52tk29GNU/unsubscribe <https://groups.google.com/d/topic/macvisionaries/Q-52tk29GNU/unsubscribe>. To unsubscribe from this group and all its topics, send an email to macvisionaries+unsubscr...@googlegroups.com <mailto:macvisionaries+unsubscr...@googlegroups.com>. To post to this group, send email to macvisionaries@googlegroups.com <mailto:macvisionaries@googlegroups.com>. Visit this group at http://groups.google.com/group/macvisionaries <http://groups.google.com/group/macvisionaries>. For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>. Barry Hadder bhad...@gmail.com -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To unsubscribe from this group and stop receiving emails from it, send an email to macvisionaries+unsubscr...@googlegroups.com. To post to this group, send email to macvisionaries@googlegroups.com. Visit this group at http://groups.google.com/group/macvisionaries. For more options, visit https://groups.google.com/d/optout.