如何修复ibtool失败,并出现Main.storyboard错误:shouldBeArchived无法识别 [英] How to fix ibtool failed with Main.storyboard error: shouldBeArchived unrecognized

查看:153
本文介绍了如何修复ibtool失败,并出现Main.storyboard错误:shouldBeArchived无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have never encountered this problem before. The application used to run perfectly but now it always says this error. I have tried cleaning and rebooting. I have tried resetting IOS Simulator. I have tried deleting derived data.

这是xcode构建的内容:

This is what xcode build it says:

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

1 : OS X EL Capitan version, 10.11

2:XCode版本6.1(6A1052c)

2 : XCode Version 6.1 (6A1052c)

3:命令工具版本6.1

3 : command tools version 6.1

对此的任何帮助都是很棒的。我也有一个很大的故事板。

Any help for this would be great. I also have quite a large storyboard. Does that matter?

谢谢!


其他故障:

Other Reault:


  1. 如果关闭了stroyboard的UIViewController的autoLayout,将建立成功。

  1. if checked stroyboard's UIViewController's autoLayout to off, will build Success.

如果在情节提要中使用UITableViewController并使用自动布局,将构建成功。

if use UITableViewController in storyboard use autolayout to on, will build Success.


这里ibtool版本:

here ibtool version:

tinkl:〜tinkl $ ibtool --version

tinkl:~ tinkl$ ibtool --version


bundle-version 1878
short-bundle-version 6.1

bundle-version 1878 short-bundle-version 6.1


推荐答案

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

I ran into this issue after working on a project on in an older version of Xcode and upgrading to El Capitan without then upgrading Xcode.

再次升级Xcode后,它可以正常工作。

After upgrading Xcode again, it worked.

这篇关于如何修复ibtool失败,并出现Main.storyboard错误:shouldBeArchived无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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