<div dir="ltr">I<div class="gmail_default" style="display:inline"><font face="georgia, serif">​ am confused with your situation. You said, &quot;</font>I’ve migrated one of my projects to Swift 3 previously, with an earlier beta of Xcode.&quot;. Then in Xcode should not using Swift 2.3. Assuming </div><span style="font-family:georgia,serif">​X<div class="gmail_default" style="font-family:georgia,serif;display:inline">​code using 2.3 wrongly, you should use Xcode migration tool again, after that Xcode will use Swift 3.0. You manually change code will not cause Xcode using Swift 3.0 automatically.</div></span><div><span style="font-family:georgia,serif"><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></span></div><div><span style="font-family:georgia,serif"><div class="gmail_default" style="font-family:georgia,serif;display:inline">Zhaoxin​</div></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 9, 2016 at 10:26 AM, Saagar Jha <span dir="ltr">&lt;<a href="mailto:saagar@saagarjha.com" target="_blank">saagar@saagarjha.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">I am aware that there were new proposals, and I’ve been following along and manually migrating. The errors are due to Xcode using the Swift 2.3 compiler, which doesn’t like the new Swift 3 syntax (for example, it’s complaining that it can’t find the new types that have the NS- prefix dropped). I’m just looking for the flag in build settings that switches the compilers.<span class="HOEnZb"><font color="#888888"><br><div>
<br><span style="color:rgb(0,0,0);font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">Saagar Jha</span><br style="color:rgb(0,0,0);font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="color:rgb(0,0,0);font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="color:rgb(0,0,0);font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On Sep 8, 2016, at 16:47, Zhao Xin &lt;<a href="mailto:owenzx@gmail.com" target="_blank">owenzx@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">​I think you can just use Xcode&#39;s tool that you upgrade to Swift 3.0. However, I suggest you do a backup of your project first in case this is not helpful.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Also, the errors you saw were probably not because of Xcode converted you code to 2.3 automatically. It wouldn&#39;t do that. The real reason is that in Xcode 6 beta6, a lot of Swift 3.0 accepted proposals were implemented and released, which made the Swift 3.0 far more different from the previous 3.0. </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Xcode&#39;s migration tool is closed sourced and is not part of Swift. ​If you have further questions, I suggest you to ask it in Apple&#39;s developer forum.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 9, 2016 at 5:01 AM, Saagar Jha via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</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">Hi,<div><br></div><div>I’ve migrated one of my projects to Swift 3 previously, with an earlier beta of Xcode. However, after downloading the GM seed, hundreds of errors pop up in my code, since it appears that Xcode has somehow reverted the compiler back to 2.3. Manually migrating using Edit&gt;Convert&gt;To Current Swift Syntax… always fails, due to the fact that the code had been previously migrated. Is there any way to “manually” migrate the code (i.e. change the compiler settings?)</div><div><br></div><div><div>Thanks,<br><span style="font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Saagar Jha</span><br style="font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:&#39;SF UI Text&#39;;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</div>
<br></div></div><br>______________________________<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div>