<div dir="ltr">Here is with Xcode.app:<div><br></div><div><div>› sudo xcode-select -s /Applications/Xcode.app</div><div>Password:</div><div>› </div><div>› swift -v</div><div>Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38)</div><div>Target: x86_64-apple-macosx10.9</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/lldb &quot;--repl=-target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -color-diagnostics&quot;</div><div>Welcome to Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38). Type :help for assistance.</div><div>Segmentation fault: 11</div></div><div><br></div><div>/Jens</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 9:23 PM, Jens Persson <span dir="ltr">&lt;<a href="mailto:jens@bitcycle.com" target="_blank">jens@bitcycle.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I was trying both Xcode and Xcode-beta, I just happened to copy paste while Xcode-beta was selected ... Anyway, both of them crash like that.<span class="HOEnZb"><font color="#888888"><div class="gmail_extra">/Jens</div></font></span><div><div class="h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 7:22 PM, Kate Stone <span dir="ltr">&lt;<a href="mailto:k8stone@apple.com" target="_blank">k8stone@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">If you’ve specified “sudo xcode-select -s /Applications/Xcode.app” then it’s surprising that the REPL session is attempting to use the LLDB and SDK from /Applications/Xcode-beta.app.  Can you double-check what “xcode-select -p” reports?<div><br></div><div>I can’t say I’ve seen a segmentation fault on REPL launch.  If you see the same behavior once moving to the GM build of Xcode it would definitely be worth filing a radar via <a href="http://bugreport.apple.com" target="_blank">bugreport.apple.com</a> with an LLDB crashlog attached to investigate further.<br><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-family:LucidaGrande;word-wrap:break-word"><div style="word-wrap:break-word"><font color="#424242" style="font-family:&#39;Lucida Grande&#39;;font-size:x-small">Kate Stone</font><span style="font-family:&#39;Lucida Grande&#39;;font-size:x-small"> </span><font color="#009193" style="font-family:&#39;Lucida Grande&#39;;font-size:x-small"><a href="mailto:k8stone@apple.com" target="_blank">k8stone@apple.com</a></font></div><div style="font-family:Times;word-wrap:break-word"><font face="Lucida Grande" size="1"><font color="#009193"></font> Xcode <font color="#424242">Low Level Tools</font></font></div></div></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div><div><div>On Oct 6, 2016, at 6:51 AM, Jens Persson via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br></div></div><div><div><div><div dir="ltr"><div>After updating to Sierra I can no longer use the Swift REPL. It crashes immediately (see Terminal session below). Anyone else having the same problem, any workaround?<br></div><div><br></div><div>It didn&#39;t help to download and reinstall the command line tools for 10.12. </div><div><br></div><div>(I had Xcode 8 and 8.1 beta installed before updating to Sierra. It might have happened just after I did a sudo xcode-select -s /Applications/Xcode.app )</div><div><br></div><div>See Terminal session below.</div><div><br></div><div>/Jens</div><div><br></div><div><br></div><div><div>› swift</div><div>Welcome to Apple Swift version 3.0 (swiftlang-800.0.48 clang-800.0.40). Type :help for assistance.</div><div>Segmentation fault: 11</div><div>› </div><div>› swift -v</div><div>Apple Swift version 3.0 (swiftlang-800.0.49 clang-800.0.40)</div><div>Target: x86_64-apple-macosx10.9</div><div>/Applications/Xcode-beta.app/C<wbr>ontents/Developer/usr/bin/lldb &quot;--repl=-target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode-beta.app/C<wbr>ontents/Developer/Platforms/Ma<wbr>cOSX.platform/Developer/SDKs/<wbr>MacOSX10.12.sdk -color-diagnostics&quot;</div><div>Welcome to Apple Swift version 3.0 (swiftlang-800.0.48 clang-800.0.40). Type :help for assistance.</div><div>Segmentation fault: 11</div><div>› </div><div>› /Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/bin/<wbr>swift -sdk /Applications/Xcode.app/Conten<wbr>ts/Developer/Platforms/MacOSX.<wbr>platform/Developer/SDKs/<wbr>MacOSX10.12.sdk -target x86_64-apple-macosx10.12</div><div>Welcome to Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38). Type :help for assistance.</div><div>Segmentation fault: 11</div></div><div><br></div><br></div></div></div>
______________________________<wbr>_________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>