I have built a framework in Xcode that I use in multiple projects. The framework has a storyboard that I load conditionally.
I am a stickler about eliminating compiler warnings and I have just 1 warning in my entire project:
“uiframework“ is unreachable because it has no entry points, and no identifier for runtime access via -[NSStoryboard instantiateControllerWithIdentifier:] [9]
I don't understand the warning.
I am instantiating the storyboard in my code like this:
NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.foo.uiframework"];
NSStoryboard *sb = [NSStoryboard storyboardWithName:@"uiframework" bundle:bundle];
// if no identities then show welcome view
if (identities.size() == 0) {
welcomeVC = [sb instantiateControllerWithIdentifier:@"Welcome"];
self.view.window.contentViewController = welcomeVC;
} else {
[Utils activationComplete];
}
So what exactly does the compiler want me to do here?
Partial screenshow of Xcode and the storyboard showing there is an entry point and it's the Welcome Scene
Similar question here but not the right solution