Adding parameter to initializer of Swift class doesn't show up in -Swift.h
| Originator: | robotwholearned88 | ||
| Number: | rdar://22935816 | Date Originated: | 01-Oct-2015 01:58 PM |
| Status: | State:OpenProduct | Resolved: | |
| Product: | iOS | Product Version: | Xcode Version 7.0 (7A220) |
| Classification: | Reproducible: | Always |
Summary: The -Swift-h file in a mixed project does not update to include an edited version of a Swift initializer (even after a clear of derived data.) Steps to Reproduce: 1. Have a project with Swift and ObjC 2. Create a class in Swift with a initializer 3. Create an instance of the class in ObjC using the initializer 4. Change the parameter list in the Swift file 5. Use the new argument list in ObjC. - Cannot find initializer with new parameter 6. Look in -Swift.h to see what initializers are available. 7. Old initializer is still there. 8. Wipe derived data to force a rebuild of the -Swift.h file 9. Now class has no initializer in the -Swift.h file Expected Results: I expected to see the new initializer available in in the -Swift.h file Actual Results: I did not see the new initializer in in the -Swift.h file
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!