<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 27, 2016, at 11:27 AM, Marcel Rebouças via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="margin: 0px; font-size: 12px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">Hello all,</font></div><div style="margin: 0px; font-size: 12px; line-height: normal; min-height: 14px;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; font-size: 12px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">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 class=""></div>What did your build command look like?</div><div><br class=""></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 class=""></div><div>Mark</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div style="margin: 0px; font-size: 12px; line-height: normal; min-height: 14px;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; font-size: 12px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">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;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" size="1" class=""><i class="">$ 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;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">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" class="">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;" class=""><font face="arial, helvetica, sans-serif" class=""><b class=""></b><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" size="1" class=""><i class="">$ xcrun -sdk iphoneos <span style="line-height:normal" class="">…/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;" class=""><font face="arial, helvetica, sans-serif" class=""><b class=""><font color="#cc0000" class="">error: </font></b><b style="" class="">unable to load standard library for target 'armv7-apple-ios8.0’</b></font></div><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class=""><b style="" class=""><br class=""></b></font></div><div style="margin: 0px; font-size: 11px; line-height: normal; min-height: 13px;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">It seems it is just working if I use the macosx sdk, but I wish to use the <span style="line-height:normal" class="">-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;" class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><font face="arial, helvetica, sans-serif" class="">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)" class=""><i class="">/<span style="line-height:normal" class="">Ninja-</span><span style="line-height:normal" class="">DebugAssert/swift-macosx-x86_64/</span></i></span><span style="line-height:normal;background-color:rgb(255,255,255)" class=""> folder?</span></font></div><div style="margin: 0px; font-size: 12px; line-height: normal; min-height: 14px;" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class=""><span class=""></span><br class=""></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal; min-height: 14px;" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class=""><span class=""></span><br class=""></font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal;" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class="">Thanks,</font></span></div><div style="margin: 0px; font-size: 12px; line-height: normal;" class=""><span style="background-color:rgb(255,255,255)" class=""><font face="arial, helvetica, sans-serif" class="">Marcel</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">The build-script log showed multiple targets.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">OS X SDK:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version: 10.11</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Deployment version: 10.9</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Library subduer: macosx</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version min name: macosx</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Architectures: x86_64</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">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;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">iOS SDK:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version: 9.2</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Deployment version: 7.0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Library subduer: iphoneos</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version min name: ios</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Architectures: armv7;armv7s;arm64</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Triple for armv7 is armv7-apple-ios7.0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Triple for armv7s is armv7s-apple-ios7.0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">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;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">iOS Simulator SDK:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version: 9.2</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Deployment version: 7.0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Library subduer: iphonesimulator</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Version min name: iso-simulator</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Architectures: i386;x86_64</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Triple for i386 is i386-apple-ios7.0</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Triple for x86_64 is x86_64-apple-ios7.0</div><div class=""><br class=""></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>