故事板对 cocoapods 故事板的引用似乎已损坏

2024-03-15

我有一个名为“ViewTester”的项目,其中链接了一个名为“blub”的 cocoapod

Now in the main.storyboard i want to reference blubstory.storyboard like so: Storyboard reference

Properties of the storyboard reference:
enter image description here

BundleID of ViewTester:
enter image description here

BundleID of blub:
enter image description here

When i try to run this i get the following exception: enter image description here

我看到了相关的 stackoverflow 帖子here http://stackoverflow.com/questions/36783325/using-a-storyboard-reference-to-a-storyboard-in-a-different-project-bundle-appea,但答案没有解决问题,因为 main.storyboard 中没有“blub”的目标成员资格

关于这个问题有什么想法/解决方案吗?对我来说,这似乎是故事板引用中的一个错误,因为它不会在“blub”包中查找故事板。


我通过更改故事板参考上的包标识符解决了这个问题:

显然,故事板参考确实考虑了包标识符。只是当它不正常时,它会打印出一个非常奇怪的非信息性异常,就像我上面问题中的异常一样。如果你的包 ID 正确,它就会工作!

另外:当 cocoapods 将您的 pod 添加到另一个项目时,它会使用包标识符创建您的 pod 的目标“org.cocoapods.your_pod_name_here”而不是你的包标识符!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

故事板对 cocoapods 故事板的引用似乎已损坏 的相关文章

随机推荐