The toolcahins are in a bit of flux right now so you may need to build your own 
custom one. If you want you can build one via the easy command of 
./swift/utils/build-toolchain or if you need to be a bit more fancy (or want to 
only build partial slices of the toolchain) I posted a version of a script I 
personally use for iterating specific slices of the toolchain: 
https://gist.github.com/phausler/70c8a6c231fedd8a8008f6a6bbaf48d4 
<https://gist.github.com/phausler/70c8a6c231fedd8a8008f6a6bbaf48d4>

Note: that script is something I use on my machine with hard coded paths so 
your mileage may vary; it is a brutal install phase that just erases the 
previous install of that identifier and copies the built product out. So be 
forwarded you can poke your eye out with this script.

Also after installing a new toolchain it is usually good to restart Xcode and 
clear your module cache just in case there is cruft lying around (when things 
get goofed up sometimes bad state can make it hard to work with things)

> On May 30, 2016, at 11:57 AM, Rajeev Jeyaraj via swift-corelibs-dev 
> <swift-corelibs-dev@swift.org> wrote:
> 
> Hi All,
> 
> I am trying to build the swift-corelibs-foundation
> 
> I followed the instructions from here: 
> https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md
>  
> <https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md>
> 
> At step 3, I am getting the following errors below.
> Run Xcode with the latest toolchain. Follow the instructions here 
> <https://swift.org/download/#apple-platforms> to start Xcode with the correct 
> toolchain.
> Open Foundation.xcworkspace.
> Build the SwiftFoundation target. This builds CoreFoundation and Foundation.
> 
> 
> Foundation.build/Debug/SwiftFoundation.build/Objects-normal/x86_64/NSXMLDTDNode.swiftdeps
>  -o 
> /Users/Snuffles/Library/Developer/Xcode/DerivedData/Foundation-adgjiwkgknrodccxdwfsovunshof/Build/Intermediates/Foundation.build/Debug/SwiftFoundation.build/Objects-normal/x86_64/NSXMLDTDNode.o
> 
> /Users/Snuffles/development/swift-corelibs-foundation/Foundation/NSXMLDTDNode.swift:242:64:
>  error: cannot convert value of type 'UnsafeMutablePointer<Void>' (aka 
> 'UnsafeMutablePointer<()>') to expected argument type 'OpaquePointer'
>             let unmanaged = Unmanaged<NSXMLDTDNode>.fromOpaque(privateData)
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to