如何修复ibtool失败,出现Main.storyboard错误:shouldBeArchived无法识别

tin*_*nkl 7 xcode build ios ibtool swift

我以前从未遇到过这个问题.该应用程序过去运行完美,但现在它总是说这个错误.我尝试过清洁和重启.我试过重置IOS模拟器.我试过删除派生数据.

这就是xcode构建它所说的:

CompileStoryboard AITEST/Base.lproj/Main.storyboard
cd /Users/tinkl/Documents/project-xcode/testProject/AITEST
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:(null)/Users/tinkl/.gem/ruby/2.0.0(null):(null)/Library/Ruby/Gems/2.0.0(null):(null)/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0(null):/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --errors --warnings --notices --module AITEST --minimum-deployment-target 8.1 --output-partial-info-plist /Users/tinkl/Library/Developer/Xcode/DerivedData/AITEST-eyqkoubdyxykegdhwecchlxhuetf/Build/Intermediates/AITEST.build/Debug-iphonesimulator/AITEST.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Users/tinkl/Library/Developer/Xcode/DerivedData/AITEST-eyqkoubdyxykegdhwecchlxhuetf/Build/Products/Debug-iphonesimulator/AITEST.app/Base.lproj/Main.storyboardc /Users/tinkl/Documents/project-xcode/testProject/AITEST/AITEST/Base.lproj/Main.storyboard

2015-06-16 10:44:10.053 ibtoold[20616:447845] -[IBUIViewControllerAutolayoutGuide shouldBeArchived]: unrecognized selector sent to instance 0x7fdd8d4b0d40
/* com.apple.ibtool.errors */
/Users/tinkl/Documents/project-xcode/testProject/AITEST/AITEST/Base.lproj/Main.storyboard: error: Exception while running ibtool: -[IBUIViewControllerAutolayoutGuide shouldBeArchived]: unrecognized selector sent to instance 0x7fdd8d4b0d40
Run Code Online (Sandbox Code Playgroud)

运行系统:

1:OS X EL Capitan版本,10.11

2:XCode版本6.1(6A1052c)

3:命令工具版本6.1

对此的任何帮助都会很棒.我也有很大的故事板.那有关系吗?

提前致谢!

其他Reault:

  1. 如果检查stroyboard的UIViewController的autoLayout关闭,将构建成功.

  2. 如果在故事板中使用UITableViewController使用autolayout来打开,将构建成功.

这里的ibtool版本:

tinkl:~tinkl $ ibtool --version

bundle-version 1878 short-bundle-version 6.1

小智 6

更新我的Xcode版本后,此问题已解决.

我在旧版本的Xcode上处理项目并升级到El Capitan后没有升级Xcode,我遇到了这个问题.

再次升级Xcode后,它运行良好.


小智 3

我也无法让它工作,但我所做的是符号链接到更新版本的 Xcode。我链接6.3.26.2.0. 我不确定这样做的影响。

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool /Applications/Xcode_6.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool