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
However, depending on the chosen target, the optionality for the args parameter in the Swift mapped typealias is different. It looks like this when using a device target:
As a result I have code that will not compile depending on the chosen target.
I'm not sure if this was happening before the upgrade to Version 8.2 (8C38) because unfortunately I hadn't tried to run the app in the simulator yet.
The text was updated successfully, but these errors were encountered:
A workaround is required to handle the optionality differences when building for iOS Simulator architectures (i.e. x86_64) vs. real iOS device architectures (i.e. arm64):
Building for iOS Simulator, the optionality for a `CVaListPointer` parameter is non-optional.
Building for real iOS device, the optionality for a `CVaListPointer` parameter is optional.
`va_list` is an array type for x86_64 and a pointer type for arm64, so the optionality differences between the archs appears correct.
Is this working as intended or should the Swift compiler try to handle the C to Swift bridging for arm64 so that the optionality is consistent with x86_64?
Environment
mac OS 10.12.1 (16B2657), XCode Version 8.2 (8C38), Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)
Additional Detail from JIRA
md5: 79c1be2adbdd057a045342fddea235c6
Issue Description:
I recently added the RZBluetooth library (https://github.com/Raizlabs/RZBluetooth) in a Swift 3 project, and the library has a function defined as:
and RZBLogHandler is a typedef
However, depending on the chosen target, the optionality for the args parameter in the Swift mapped typealias is different. It looks like this when using a device target:
but changes to this when using a simulator target
As a result I have code that will not compile depending on the chosen target.
I'm not sure if this was happening before the upgrade to Version 8.2 (8C38) because unfortunately I hadn't tried to run the app in the simulator yet.
The text was updated successfully, but these errors were encountered: