Xcode 7 ibtool错误:将故事板引用部署到iOS 8.0要求您的故事板不共享任何视图控制器标识符 [英] Xcode 7 ibtool error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers

查看:278
本文介绍了Xcode 7 ibtool错误:将故事板引用部署到iOS 8.0要求您的故事板不共享任何视图控制器标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个针对iOS 8和9的iOS应用,我正在升级以使用Storyboard References代替通过代码链接。我逐渐转换了越来越多的位,突然间我开始得到这个编译器错误:

I have an iOS app targeting iOS 8 and 9 which I'm in the process of upgrading to use Storyboard References instead of links through code. I've gradually converted more and more bits over, when suddenly I started getting this compiler error:


:错误:将故事板引用部署到iOS 8.0要求您的故事板不共享任何视图控制器标识符。 A.storyboard和Z.storyboard都包含一个标识符为ZNavigationController的视图控制器。

: error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers. A.storyboard and Z.storyboard both contain a view controller with identifier "ZNavigationController".

Z.storyboard 绝对包含 ZNavigationController ,它应该在那里,但 A.storyboard 肯定不会包含任何此类导航控制器。我在文本编辑器中打开了.storyboard文件,并确认没有提到 ZNavigationController

Z.storyboard absolutely contains ZNavigationController, it's supposed to be there, however A.storyboard assuredly does not contain any such navigation controller. I've opened the .storyboard file in a text editor and verified that there is no mention of ZNavigationController.

提供更多上下文:


  • A.storyboard 引用 B.storyboard ,它有来自 A

  • <中的一个viewControllers的手动segue li> B.storyboard 引用了 Z.storyboard - 它通过其中一个的手动segue到达那里viewControllers在 B
  • A.storyboard has a reference to B.storyboard, and it has a manual segue from one of the viewControllers in A
  • B.storyboard has a reference to Z.storyboard - it gets there via a manual segue from one of the viewControllers in B

运行XCode版本7.0(7A218),这是GM种子构建

Running XCode Version 7.0 (7A218) which is the GM seed build

推荐答案

我做了一些挖掘,结果证明即使 A.storyboard 没有任何故事板ID, B.storyboard 中的控制器以及 Z.storyboard 两者的故事板ID都是 ZNavigationController
B.storyboard 中的一个我删除的ID不正确。

I did a bit more digging and it turns out that even though A.storyboard didn't have anything with that storyboard ID, there was a controller in B.storyboard and also in Z.storyboard which both had the Storyboard ID of ZNavigationController. The one in B.storyboard had an incorrect ID which I removed.

看起来Xcode是错误地将(正确的)错误归因于 A.storyboard 而不是 B

Looks like Xcode is misattributing the (correct) error to A.storyboard instead of B

这篇关于Xcode 7 ibtool错误:将故事板引用部署到iOS 8.0要求您的故事板不共享任何视图控制器标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆