<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="">Ok, I’m also encountering errors, but many more than Pushkar:<div class=""><ul class=""><li class="">OS: OS X El Capitan</li><li class="">Xcode: Version 7.3 beta 5 (7D162j)</li><li class="">Toolchain: Xcode Swift DEVELOPMENT Snapshot 2016-03-01 (a)</li></ul></div><div class="">And the errors I’m getting seem to come from a mismatch with the Standard Library:</div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; line-height: normal;" class=""><ul class=""><li class="">Foundation/FoundationErrors.swift:10:48: Use of undeclared type ‘ErrorProtocol'</li><li class="">Foundation/NSString.swift:1220:55: Use of undeclared type ‘CVarArg’</li><li class="">Foundation/NSData.swift:18:38: Use of undeclared type ‘OptionSet’</li><li class="">Foundation/NSNotification.swift:95:11: Use of undeclared type ‘Sequence'</li><li class=""> ...</li></ul></div></div><div class="">Any ideas what I’m doing wrong?</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 03 Mar 2016, at 20:01, Pushkar N Kulkarni via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class="">Brian, Philippe - Thanks for your prompt responses! </div><div class=""><br class=""></div><div class="">You were right, I was using the <span style="font-family: Menlo; font-size: 14px;" class="">2016-02-08</span> toolchain. Using the latest (<span style="font-family: Menlo; font-size: 14px;" class="">2016-03-01)</span> solved the problem :)</div><div class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div dir="ltr" class=""><br class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 1.143em;" class="">Pushkar N Kulkarni,</span></span></div>
<div dir="ltr" class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 1.143em;" class="">IBM Runtimes</span></span></div>
<div dir="ltr" class=""> </div>
<div dir="ltr" class=""><em class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 0.857em;" class="">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em></div></div></div></div></font></div><br class=""><br class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font color="#990099" class="">-----Brian Gesiak <<a href="mailto:modocache@gmail.com" target="_blank" class="">modocache@gmail.com</a>> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;" class="">To: <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>>, Pushkar N Kulkarni/India/IBM@IBMIN<br class="">From: Brian Gesiak <<a href="mailto:modocache@gmail.com" target="_blank" class="">modocache@gmail.com</a>><br class="">Date: 03/02/2016 11:26PM<br class="">Subject: Re: [swift-corelibs-dev] Building Foundation in Xcode<br class=""><br class=""><div class="">Hello Pushkar,</div><div class=""><br class=""><div class="acompli_signature"></div>One idea that comes to mind: are you launching Xcode 7.2 using a recent Swift toolchain? To do so, follow the instructions on this page: <a dir="ltr" href="https://swift.org/download/#latest-development-snapshots" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1" class="">https://swift.org/download/#latest-development-snapshots</a></div><div class=""><br class=""></div><div class="">Specifically, you'll want to launch Xcode using the xcrun launch-with-toolchain command.</div><div class=""><br class=""></div><div class="">Forgive me if this isn't the problem--I'm not at a computer right now, but that error message vaguely reminds me of what happens when one tries to build Foundatoon with an older version of Swift.</div><div class=""><br class=""></div><div class="">- Brian Gesiak</div><br class=""><br class=""><br class=""><div class="gmail_quote">On Wed, Mar 2, 2016 at 8:09 AM -0800, "Pushkar N Kulkarni via swift-corelibs-dev" <span dir="ltr" class=""><<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>></span> wrote:<br class=""><br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="3D"ltr"" class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class=""><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">I am very new to Xcode and tried building Foundation and running TestFoundation in Xcode 7.2.1, using the instructions given <a target="_blank" href="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md" title="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md" class="">here</a>.</font></div><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></div><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">In step 3, Foundation doesn't build because Xcode reports a compilation failure in NSObjCRuntime.swift (p<font color="#333333" class="">lease refer to the attached snapshot):</font></font></div><div class=""><b class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Use of unresolved identifier '_typeByName'</font></b></div><div class=""><b class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></b></div><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">I can see that this function is defined outside of the Foundation project, in the swift project (<a href="https://github.com/apple/swift/blob/a44b09b6b6de50d54856499b156881f68e2eb34f/stdlib/public/core/Misc.swift" title="stdlib/public/core/Misc.swift" style="background-color: transparent; box-sizing: border-box; text-decoration: none; word-wrap: break-word; font-weight: bold;" class=""><font color="#4078c0" class="">stdlib/public/core/Misc.swift</font></a>)<font color="#333333" class=""><b class="">. </b>I think there are other functions defined in the stdlib and used in Foundation. I am not sure why this particular symbol causes a problem.</font></font></div><div class=""><font color="#333333" size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><b class=""><br class=""></b></font></div><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Could someone please tell me how the symbol could be imported so that Foundation could be compiled and linked?</font></div><div class=""><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></div><div style="font-size: small; font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif;" class=""><span style="font-family: Verdana, Arial, Helvetica, sans-serif;" class=""><span id="cid:1456916107867"><Image.1456916107867.jpg></span><br class=""></span></div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" style="font-size: small; font-family: Verdana, Arial, Helvetica, sans-serif;" class=""><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt"><div dir="ltr" class=""><br class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 1.143em;" class="">Pushkar N Kulkarni,</span></span></div><div dir="ltr" class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 1.143em;" class="">IBM Runtimes</span></span></div><div dir="ltr" class=""> </div><div dir="ltr" class=""><em class=""><span style="font-family:georgia,serif;" class=""><span style="font-size: 0.857em;" class="">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em></div></div></div></div></font></div></font><br class=""></div>
</blockquote></div>
</div></div></font></font><br class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></div></body></html>