<div dir="ltr">It worked! I'll read the -h more carefully next time, it was explained there. Thank you very much Mark.<div><br></div><div>Marcel</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-27 17:07 GMT-03:00 Marcel Rebouças <span dir="ltr"><<a href="mailto:mscreboucas@gmail.com" target="_blank">mscreboucas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Mark, I used the standard utils/build-script. I will try again after rebuilding with --ios. <div><br></div><div>Thanks,</div><div>Marcel</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-27 16:50 GMT-03:00 Mark Lacey <span dir="ltr"><<a href="mailto:mark.lacey@apple.com" target="_blank">mark.lacey@apple.com</a>></span>:<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"><br><div><span><blockquote type="cite"><div>On Feb 27, 2016, at 11:27 AM, Marcel Rebouças via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:</div><br><div><div dir="ltr"><div style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif">Hello all,</font></div><div style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif">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></div></div></div></blockquote><div><br></div></span>What did your build command look like?</div><div><br></div><div>You need to specify ‘--ios’ (or the shorter ‘-i’) in order to build the pieces required to compile for iOS.</div><div><br></div><div>Mark</div><div><br><blockquote type="cite"><div><div><div><div dir="ltr"><div style="margin:0px;font-size:12px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif">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></div><div style="margin:0px;font-size:12px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" size="1"><i>$ xcrun -sdk iphoneos swiftc -target armv7-apple-ios8.0 *.swift</i></font></div><div style="margin:0px;font-size:13px;line-height:normal;min-height:15px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">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></div><div style="margin:0px;font-size:11px;line-height:normal;min-height:13px"><font face="arial, helvetica, sans-serif"><b></b><br></font></div><div style="margin:0px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif" 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></div><div style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif"><b><font color="#cc0000">error: </font></b><b>unable to load standard library for target 'armv7-apple-ios8.0’</b></font></div><div style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif"><b><br></b></font></div><div style="margin:0px;font-size:11px;line-height:normal;min-height:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">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></div><div style="margin:0px;font-size:13px;line-height:normal;min-height:15px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">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></div><div 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"><span></span><br></font></span></div><div 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"><span></span><br></font></span></div><div style="margin:0px;font-size:12px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Thanks,</font></span></div><div style="margin:0px;font-size:12px;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Marcel</font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">The build-script log showed multiple targets.</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">OS X SDK:</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 10.11</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 10.9</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: macosx</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: macosx</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: x86_64</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for x86_64 is x86_64-apple-macosx10.9</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">iOS SDK:</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 9.2</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: iphoneos</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: ios</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: armv7;armv7s;arm64</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for armv7 is armv7-apple-ios7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for armv7s is armv7s-apple-ios7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for arm64 is arm64-apple-ios7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">iOS Simulator SDK:</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version: 9.2</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Deployment version: 7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Library subduer: iphonesimulator</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Version min name: iso-simulator</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Architectures: i386;x86_64</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for i386 is i386-apple-ios7.0</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Triple for x86_64 is x86_64-apple-ios7.0</div><div><br></div></div></div></div>
_______________________________________________<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/mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>