UIStoryboard linker error is nondescript
| Originator: | ckrames1234 | ||
| Number: | rdar://12038356 | Date Originated: | 06-Aug-2012 12:01 PM |
| Status: | Duplicate | Resolved: | 07-Aug-2012 04:33 PM |
| Product: | iPhone SDK | Product Version: | 5.1.1 9B206 |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
If you use an element in Interface Builder in Xcode 4.4 that is not linked to the application, the resulting error at runtime is not insightful at all.
Steps to Reproduce:
1. Create a new view-based iOS project in Xcode 4.4, using Storyboard.
2. Insert an MKMapView into the main view
3. Build and run the application
Expected Results:
An exception to be thrown detailing that the class "MKMapView" was not found in the runtime and needs to be linked.
Actual Results:
The following nondescript exception is thrown:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'
Regression:
Not tested.
Notes:
A compile time warning would be awesome, but probably very hard to generate. A relevant runtime exception is definitely acceptable, for a one time developer error.
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!