[swift-corelibs-dev] [XCTest] Cannot build using XCode

Madhu Samuel madhusamuel at gmail.com
Sun May 29 03:24:44 CDT 2016


Hi All,

I am new to this forum.

I am trying to build the xctest project. I followed the instructions at
https://github.com/apple/swift-corelibs-xctest

I am able to successfully build via the build scripts. But, if I build
XCTest using xcode using the SwiftXCTest scheme I am getting a few errors.

1. 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)

2. swift-corelibs-foundation/Foundation/NSTimer.swift:14:47: error: cannot
convert value of type 'UnsafeMutablePointer<Void>' (aka
'UnsafeMutablePointer<()>') to expected argument type 'OpaquePointer'
    let t = Unmanaged<NSTimer>.fromOpaque(info!).takeUnretainedValue()

etc.

My dev environment,
OS: Mac OSX El Capitan 10.11.4 (15E65).
Xcode Version: Version 7.3.1 (7D1014)
XCode Toolchain: Swift Development Snapshot 2016-05-09 (a)

Any help is appreciated.

Regards,
Madhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160529/aa80de11/attachment.html>


More information about the swift-corelibs-dev mailing list