Xcode 7 ibtool error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers

孤街醉人 提交于 2019-12-04 09:00:03

Found the problem (I'm using Xcode 7.1.1).

After using Product --> Refactor to storyboard, it create a storyboard references with a storyboard ID same than the reference ID (attributes & identity inspector).

This is a bug, storyboard ID should be nil and only the reference ID should be filled.

Update #1 : When creating multiple storyboard reference using "Refactor to storyboard", it create the same object ID which cause this error too.

Update #2 : Just don't use the "Refactor to storyboard" feature if you target iOS 8. It create multiple doublons with objectId which cause an error like :

/* com.apple.ibtool.errors */ : error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers. Category.storyboard and Home.storyboard both contain a view controller with identifier "UIViewController-BX3-FJ-k0T".

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.

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

milczi

First you need to find which Reference is doubled UIViewController-5kv-Ul-Bah - it was my error

Press cmd + 3 and input id (5kv-Ul-Bah) without "UIViewController-" find doubled references

You should see something like this

In my case it is InvitationDetails.storyboard and Location.storyboard

You have 2 options:

Option 1: Remove Storyboard Reference from storyboard and add another one (do this with my other instructions https://stackoverflow.com/a/33753164/2493555)

Option 2: Open new created storyboard as source code

then find our id and change it to another like "5kv-Ul-Bahxx" (I add xx postfix) but you need to be sure that string "5kv-Ul-Bahxx" is not exist in project (by pressing cmd + 3 and find)

  • Click on the offending storyboard reference
  • Open the identity inspector
  • Delete the "Storyboard ID".

As far as I can tell, there's no need to reference a reference, and this seems to be the thing it's complaining about. When you use 'refactor to storyboard', it leaves the storyboard id in the reference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!