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

2024-03-26

我以前从未遇到过这个问题。该应用程序曾经运行完美,但现在总是显示此错误。我尝试过清理和重启。我试过重置IOS模拟器。我尝试过删除派生数据。

这就是 xcode build 所说的:

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

运行系统:

1:OS X EL Capitan 版本,10.11

2:XCode 版本 6.1 (6A1052c)

3:命令工具版本6.1

对此的任何帮助都会很棒。我还有一个很大的故事板。这有关系吗?

提前致谢!

其他结果:

  1. 如果检查 Storyboards UIViewController auto Layout 为关闭,则构建成功。

  2. 如果在故事板中使用 UITableViewController 使用自动布局,将构建成功。

这里是 ibtool 版本:

Tinkl:~ Tinkl$ ibtool --version

捆绑版本 1878 短捆绑版本 6.1


更新我的 Xcode 版本后,这个问题得到了解决。

我在旧版本 Xcode 中处理一个项目并升级到 El Capitan 后没有升级 Xcode,就遇到了这个问题。

再次升级Xcode后,就可以了。

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

如何修复 ibtool 失败并出现 Main.storyboard 错误:shouldBeArchived 无法识别 的相关文章

随机推荐