<div dir="ltr"><p style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">Hello all,</font></p>
<p style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p>
<p style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">I’ve been trying to use the ‘swiftc’ command from the version I built from the source (build-script, swift-2.2-branch), and I am having problems with the targets.</font></p>
<p style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p>
<p style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">For example, I am able to use the command below just fine (which I believe uses the swiftc I got with Xcode - version 2.1.1)</font></p><p style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000" size="1"><i>$ xcrun -sdk iphoneos swiftc -target armv7-apple-ios8.0 *.swift</i></font></p>
<p style="margin:0px;font-size:13px;line-height:normal;min-height:15px"><font face="arial, helvetica, sans-serif"><br></font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">But when I try to use it with my swiftc (version 2.2-dev), I receive an error saying that it was unable to load a <span style="line-height:normal">standard library for the target. I also tried with the other targets at the end of the email.</span></font></p>
<p style="margin:0px;font-size:11px;line-height:normal;min-height:13px"><font face="arial, helvetica, sans-serif" color="#000000"><b></b><br></font></p>
<p style="margin:0px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000" size="1"><i>$ xcrun -sdk iphoneos <span style="line-height:normal">…/build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swiftc</span> -target armv7-apple-ios8.0 *.swift</i></font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif"><b><font color="#cc0000">error: </font></b><b style="color:rgb(0,0,0)">unable to load standard library for target 'armv7-apple-ios8.0’</b></font></p><p style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif"><b style="color:rgb(0,0,0)"><br></b></font></p>
<p style="margin:0px;font-size:11px;line-height:normal;min-height:13px"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">It seems it is just working if I use the macosx sdk, but I wish to use the <span style="line-height:normal">-sdk iphoneos or -sdk iphonesimulator to be able to import UIKit inside the .swift file.</span></font></p>
<p style="margin:0px;font-size:13px;line-height:normal;min-height:15px"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">Do I have to build in a different way in order to use those targets? Or am I doing something wrong? Maybe it has something to do with the contents of the <span style="background-color:rgb(255,255,255)"><i>/<span style="line-height:normal">Ninja-</span><span style="line-height:normal">DebugAssert/swift-macosx-x86_64/</span></i></span><span style="line-height:normal;background-color:rgb(255,255,255)"> folder?</span></font></p>
<p style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000"><span></span><br></font></span></p>
<p style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000"><span></span><br></font></span></p>
<p style="margin:0px;font-size:12px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Thanks,</font></span></p>
<p style="margin:0px;font-size:12px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" color="#000000">Marcel</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">The build-script log showed multiple targets.</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">OS X SDK:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 10.11</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 10.9</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: macosx</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: macosx</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: x86_64</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for x86_64 is x86_64-apple-macosx10.9</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">iOS SDK:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 9.2</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: iphoneos</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: ios</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: armv7;armv7s;arm64</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for armv7 is armv7-apple-ios7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for armv7s is armv7s-apple-ios7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for arm64 is arm64-apple-ios7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">iOS Simulator SDK:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 9.2</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: iphonesimulator</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: iso-simulator</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: i386;x86_64</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for i386 is i386-apple-ios7.0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for x86_64 is x86_64-apple-ios7.0</p><div><br></div></div>