<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.<div class="gmail_extra">/Jens</div><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"><<a href="mailto:k8stone@apple.com" target="_blank">k8stone@apple.com</a>></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:'Lucida Grande';font-size:x-small">Kate Stone</font><span style="font-family:'Lucida Grande';font-size:x-small"> </span><font color="#009193" style="font-family:'Lucida Grande';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 class="h5"><div>On Oct 6, 2016, at 6:51 AM, Jens Persson via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:</div><br></div></div><div><div><div class="h5"><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'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/<wbr>Contents/Developer/usr/bin/<wbr>lldb "--repl=-target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode-beta.app/<wbr>Contents/Developer/Platforms/<wbr>MacOSX.platform/Developer/<wbr>SDKs/MacOSX10.12.sdk -color-diagnostics"</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/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin/swift -sdk /Applications/Xcode.app/<wbr>Contents/Developer/Platforms/<wbr>MacOSX.platform/Developer/<wbr>SDKs/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/<wbr>mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div>