[swift-corelibs-dev] Building Foundation in Xcode
Brian Gesiak
modocache at gmail.com
Wed Mar 2 11:56:24 CST 2016
Hello Pushkar,
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: https://swift.org/download/#latest-development-snapshots
Specifically, you'll want to launch Xcode using the xcrun launch-with-toolchain command.
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.
- Brian Gesiak
On Wed, Mar 2, 2016 at 8:09 AM -0800, "Pushkar N Kulkarni via swift-corelibs-dev" <swift-corelibs-dev at swift.org> wrote:
I am very new to Xcode and tried building Foundation and running TestFoundation in Xcode 7.2.1, using the instructions given here.
In step 3, Foundation doesn't build because Xcode reports a compilation failure in NSObjCRuntime.swift (please refer to the attached snapshot):Use of unresolved identifier '_typeByName'
I can see that this function is defined outside of the Foundation project, in the swift project (stdlib/public/core/Misc.swift). 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.
Could someone please tell me how the symbol could be imported so that Foundation could be compiled and linked?
Pushkar N Kulkarni,
IBM Runtimes
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160302/e2643610/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image.1456916107867.jpg
Type: image/jpeg
Size: 18052 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160302/e2643610/attachment.jpg>
More information about the swift-corelibs-dev
mailing list