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
SR-3332@objc attribute on Linux platform leads to error
Issue Description:
It appears that a NSObject subclass with the @objcMembers and a bool property fail to build on Linux. Commenting out the @objcMembers annotation, and it builds fine. Likewise, leaving the @objcMembers annotation on there and changing the bool property to an int property, also compiles fine.
<unknown>:0: error: could not find Objective-C bridge type for type 'Bool'; did you forget to import Foundation?
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: unable to set up the ObjC bridge!
Attachment: Download
Environment
Linux Swift 4.1
Additional Detail from JIRA
md5: 287e65c4f37603a06f01779cf622035d
relates to:
Issue Description:
It appears that a NSObject subclass with the @objcMembers and a bool property fail to build on Linux. Commenting out the @objcMembers annotation, and it builds fine. Likewise, leaving the @objcMembers annotation on there and changing the bool property to an int property, also compiles fine.
<unknown>:0: error: could not find Objective-C bridge type for type 'Bool'; did you forget to import Foundation?
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: unable to set up the ObjC bridge!
Is there any way to workaround this? I've tried
#if os(iOS) @objcMembers #endif
without any luck.
The text was updated successfully, but these errors were encountered: