IBDesignables don't work at all in an iOS project if it contains a Watch app
Originator: | orpe4711 | ||
Number: | rdar://37841641 | Date Originated: | 2018-02-25 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 7.2, 7.3 beta3 |
Classification: | Reproducible: | Yes |
Summary: IBDesignables don't work at all in a project that has a Watch app because the automatic step that build the project for interfacebuilder is broken in this case. I really hope a fix can be included for this in Xcode 7.3 as this has been broken since 7.2. Steps to Reproduce: 1. Create a new "iOS App with WatchKit App" project in Xcode 2. Add a custom view and make it designable 3. Use the custom view in a storyboard Attached is a project prepared in this way and a screenshot that shows the error. Expected Results: Xcode builds the project and displays the designable in interface builder Actual Results: Xcode fails to build the project with the following message: target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform Version/Build: 7.2 GM and 7.3 beta 3
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!
Fixed in Xcode 10
This has been marked as a dupe of radar://36281806, which is fixed as of Xcode 10 beta 5.