You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to declare a simple variable of type IOBluetoothDevice without getting a build error of "`IOBluetoothDevice` is ambiguous for type lookup in this context".
There are no other source files or frameworks included beyond what is shown in the snippet above.
This reproduces with a clean install of Xcode 7.2, the January 11 Swift 2.2 toolchain, and the project file attached here: http://cl.ly/0x37283k3G3j
This is a regression from Swift 2.1.
Steps to reproduce:
1. Install Xcode 7.2 from the Mac App Store
2. Download and install the Swift 2.2 toolchain from https://swift.org/download/
3. Run Xcode 7.2 with xcrun launch-with-toolchain /Library/Developer/Toolchains/swift-latest.xctoolchain
4. Try building the project.
The text was updated successfully, but these errors were encountered:
I'm not sure why the behavior changed, but we really do have two things called "IOBluetoothDevice": an Objective-C class, and an "IOBluetoothDeviceRef" CF type that gets mapped into Swift as "IOBluetoothDevice". (To add insult to injury, they are actually the same type.)
I'll look into just not importing IOBluetoothDeviceRef.
Attachment: Download
Additional Detail from JIRA
md5: a1482ba762fa12de03cb0bff167c49cc
Issue Description:
I am unable to declare a simple variable of type
IOBluetoothDevice
without getting a build error of"`IOBluetoothDevice` is ambiguous for type lookup in this context"
.There are no other source files or frameworks included beyond what is shown in the snippet above.
This reproduces with a clean install of Xcode 7.2, the January 11 Swift 2.2 toolchain, and the project file attached here: http://cl.ly/0x37283k3G3j
This is a regression from Swift 2.1.
Steps to reproduce:
1. Install Xcode 7.2 from the Mac App Store
2. Download and install the Swift 2.2 toolchain from https://swift.org/download/
3. Run Xcode 7.2 with
xcrun launch-with-toolchain /Library/Developer/Toolchains/swift-latest.xctoolchain
4. Try building the project.
The text was updated successfully, but these errors were encountered: