xcode storyboard - ibtoold unarchiving exception

时间:2013-03-07 15:31:20

标签: ios xcode xib uistoryboard

例外是;

CompileStoryboard Catwall/en.lproj/MainStoryboard.storyboard
cd /Users/guvenozyurt/Desktop/git/catwall_ios
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 5.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/guvenozyurt/Library/Developer/Xcode/DerivedData/Catwall-ghvlotdrbpzsfveimvmoxitsgpod/Build/Products/Debug-iphonesimulator/Catwall.app/en.lproj/MainStoryboard.storyboardc /Users/guvenozyurt/Desktop/git/catwall_ios/Catwall/en.lproj/MainStoryboard.storyboard --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk


2013-03-07 17:14:26.187 ibtoold[34122:707] Exception raised while unarchiving document objects - *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil/* com.apple.ibtool.errors *//Users/guvenozyurt/Desktop/git/catwall_ios/Catwall/en.lproj/MainStoryboard.storyboard: error: The document "MainStoryboard.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)    Recovery Suggestion: Check the console log for additional informat..

最近,我删除了一个xib文件并在控制器端进行了整个绘图。然后合并来自git的代码,解决冲突(非常小心,3次重置并再次执行..)

我检查了模拟器。构建目标版本,试图改变“复制包资源”顺序不那么深刻。不!它仍然失败了。

ibtoold当然不是开源的,我确实知道那里发生了什么。 。

我被困了,需要帮助!感谢..

4 个答案:

答案 0 :(得分:13)

此错误可能有多种原因。在使用git合并故事板后我得到了这个错误。 我的故事板也有自定义字体,我在读完这个帖子后安装了它们(+1),即使在那之后我也得到了同样的错误。 然后我搜索了我遇到冲突的所有地方,最后发现segue中存在的inferredMetricsTieBreakers之一没有在故事板中的任何地方使用过。我删除了它并重新启动了XCode并将所有内容重新安装到位。

所以最重要的是彻底访问所有有冲突的地方,你应该能够解决大多数合并问题。

-anoop

答案 1 :(得分:8)

试图在另一台计算机上打开一个项目 - 在Storyboard中设置自定义字体 - 时遇到了这个问题。

原来,需要将自定义字体添加到该计算机的Font Book中。

当然,在代码中也可以这样做。

答案 2 :(得分:0)

我刚遇到这个问题,发现这是因为我在故事板文件中引用了我在iOS应用程序中包含的字体。

出于某种原因,一旦我在代码中而不是在Storyboard中设置字体,它就可以正常工作。

答案 3 :(得分:0)

实际上问题是故事板。我在故事板上恢复git merge,因此它可以在xcode上打开,然后手动删除引用而不是通过git。然后错误就消失了。神奇的IOS世界..

相关问题