如何解决“uiframework”无法访问,因为它没有入口点,也没有运行时访问的标识符
我在 Xcode 中构建了一个框架,用于多个项目。该框架有一个我有条件加载的故事板。
我坚持要消除编译器警告,我的整个项目中只有 1 个警告:
“uiframework“ is unreachable because it has no entry points,and no identifier for runtime access via -[nsstoryboard instantiateControllerWithIdentifier:] [9]
我不明白警告。
我正在像这样在我的代码中实例化故事板:
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];
}
那么编译器到底想让我在这里做什么?
Xcode 的部分屏幕显示和故事板显示有一个入口点,它是欢迎场景
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。