Storyboard reference to cocoapods storyboard seems broken
I solved this by changing the bundle identifier on the storyboard reference:
Appearantly the bundle identifier does get taken into consideration by the storyboard reference. It's just that when it is not OK it prints out a really weird non informative exception, like the one in my question above. If your bundle ID is correct it will work!
Also: when cocoapods adds your pod to another project it creates a target of your pod with the bundle identifier "org.cocoapods.your_pod_name_here" instead of your bundle identifier!
Loading a storyboard from a framework
Found the problem. Just silly but after deleting the Main.storyboard from the project, I didn't remove it from the project's settings. Trying to load it as the initial view controller. After changing the settings, UIStoryboard(name:"Main", bundle:NSBundle(forClass:self)
just works properly.
Xcode 4 why do I see XML when clicking on MainStoryBoard.storyboard: seems like a bug
To fix the issue, right-click MainStoryboard.storyboard, then choose "Open as >" and then "Interface Builder - iOS Storyboard".
How to restore the main.storyboard after deleting the .xcodeproj and adding it back
- Open your Xcode project
- Right click on the folder your want to add your Storyboard file to
- Click
Add files to "your-project-name"...
- Browse to your storyboard and add it
Related Topics
Handle Multiple File (Image) Uploads to Aws S3 Swift
How Do View Types Like Text or Image Conform to the View Protocol in Swiftui
Present Specific View Controller in Didreceiveremotenotification with Swift
How to Use Type Erasure with a Protocol Using Associated Type
Swift 1.2 and Parse: Issue with Retrieving Images to Populate Pfquerycollectionviewcontroller
iOS Pod Install Gcm and Pnchartswift
In Swift, Can a Function Be a Type
Avmutablecomposition Resizing Issue
7 Duplicate Symbols for Architecture X86_64 in React Native
How to Perform Realm Count Query
How to Use a Generic Class Without the Type Argument in Swift
Segue Out of Navigation Controller
Errortype' Is Not Convertible to 'Nserror'
Split String into Array of Arrays