Xcode 8 generates broken Swift-Header
Originator: | scheisssamsung1 | ||
Number: | rdar://26786528 | Date Originated: | 14-Jun-2016 |
Status: | Closed | Resolved: | Yes |
Product: | Developer Tools | Product Version: | Xcode 8.0 beta (8S128d) |
Classification: | Reproducible: | Yes |
Seems to be resolved in Xcode 8.0 beta 2 (8S162m) ------ Summary: The automatically generated header "TargetName-Swift.h" is broken when using Xcode 8. There are errors occurring multiple times in this file: - Too many arguments provided to function-like macro invocation - Unknown type name 'SWIFT_CLASS_PROPERTY' - Expected identifier or '(' The Swift code for these lines is correct and does not throw any errors. I'll attach the Swift-Header and the Swift-File that are involved in this problem Steps to Reproduce: (not sure, if this happens in every project) 1. Convert Swift 2.2 syntax to Swift 3 using the built-in tool in Xcode 8 2. Fix some errors that could not be resolved by the converter 3. Build the project for iOS 10 Expected Results: The app should be built as expected, because I have no influence on the Swift-Header which causes the errors Actual Results: These 3 error occurred multiple times: - Too many arguments provided to function-like macro invocation - Unknown type name 'SWIFT_CLASS_PROPERTY' - Expected identifier or '(' Version: OS X El Capitan 10.11.5 (15F34) Xcode 8.0 beta (8S128d) Notes: Configuration: MacBook Pro (Retina, 13', Mid 2014); 8GB RAM; 256GB SSD iOS Simulator Attachments: 'TargetName-Swift.h' and 'MyClass.swift' were successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!