ios 如何修复 ibtool 失败,退出代码为 255
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20629140/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix ibtool failed with exit code 255
提问by user2947604
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.
我以前从未遇到过这个问题。该应用程序曾经完美运行,但现在总是提示此错误。我试过清理和重启。我曾尝试重置 IOS 模拟器。我试过删除派生数据。
This is what it says:
这就是它所说的:
CompileStoryboard YoungstersTennisApp/Base.lproj/Main_iPhone.storyboard
cd /Users/DJ/Desktop/YoungstersTennisApp
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.0
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 --minimum-deployment-target 6.0 --output-format human-readable-text --compile /Users/DJ/Library/Developer/Xcode/DerivedData/YoungstersTennisApp-ftehnuqeslbyekfiszajlixujbqk/Build/Products/Debug-iphonesimulator/YoungstersTennisApp.app/Base.lproj/Main_iPhone.storyboardc /Users/DJ/Desktop/YoungstersTennisApp/YoungstersTennisApp/Base.lproj/Main_iPhone.storyboard
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255
命令 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool 失败,退出代码为 255
Any help for this would be great. I also have quite a large storyboard. Does that matter?
对此的任何帮助都会很棒。我也有一个相当大的故事板。那有关系吗?
Thanks in advance!
提前致谢!
回答by iVela
I had the same issue with XCode 6 and iOS 8.
我在 XCode 6 和 iOS 8 上遇到了同样的问题。
Just a XIB was giving me errors when I tried to compile.
当我尝试编译时,只是一个 XIB 给了我错误。
I've tried to clean the project and the problem persisted.
我试图清理该项目,但问题仍然存在。
Then I've opened the view that was giving me problems, I've saved again (WITHOUT CHANGING ANYTHING AT ALL) and... voila! My app up and running. XCode is satanic :)
然后我打开了给我带来问题的视图,我又保存了(根本没有改变任何东西)然后......瞧!我的应用程序启动并运行。XCode 是邪恶的 :)
回答by u5150587
I also had this issue, after upgrade xCode to version 7.0 beta 6.
在将 xCode 升级到 7.0 beta 6 版后,我也遇到了这个问题。
My way as below:
我的方法如下:
Delete the "DerivedData" folder
Rebuild the project (it will create new "DerivedData" folder )
删除“DerivedData”文件夹
重建项目(它将创建新的“DerivedData”文件夹)
Hope it will help to someone...
希望它会帮助某人...
回答by Nikita Took
Cleaning ang re-building project solved the problem for me (xcode 5)
Cleaning ang re-building project 为我解决了这个问题(xcode 5)
Shift - cmd - K
cmd - K
回答by ArtOfWarfare
I ended up with this issue by having a UITableView
with static cells
that wasn't in a UITableViewController
, but instead had a subclass of a UIViewController
. Changing my subclass to instead inherit from UITableViewController
fixed the problem.
我最终解决了这个问题,因为 a UITableView
withstatic cells
不在 a 中UITableViewController
,而是有 a 的子类UIViewController
。将我的子类更改为继承自UITableViewController
解决了问题。
回答by alper_k
Cleaning project, cleaning build folder and restarting xcode solved the issue for me.
清理项目,清理构建文件夹并重新启动 xcode 为我解决了这个问题。
回答by Constantin Saulenco
I also had this issue, after a big merge, and when i click on the .xib the xCode getting quit. Maybe you left some of the old Code, check the id of the view, also the id with problem is shown in the detail screen of the error message when xcode Quit so:
我也有这个问题,在大合并之后,当我点击 .xib 时,xCode 退出了。也许你留下了一些旧的代码,检查视图的 id,还有问题的 id 显示在 xcode 退出时错误消息的详细信息屏幕中:
- Open the .xib with the text editor
- Check that the id of an element should appears twice; in the "subviews" group and in "connections" group if you connected as a property
- remove the the code that you don't need and save the file
- 使用文本编辑器打开 .xib
- 检查元素的 id 是否应该出现两次;在“子视图”组和“连接”组中(如果您作为属性连接)
- 删除不需要的代码并保存文件
Hope it will help, Constantin
希望它会有所帮助,康斯坦丁
回答by yawnobleix
I had this issue after with xcode 8.2 after deleting one of my view controllers. to fix it I just cleaned my build folder and it worked again
在删除我的一个视图控制器后,我在使用 xcode 8.2 后遇到了这个问题。修复它我刚刚清理了我的构建文件夹,它又工作了
to clean build folder:
清理构建文件夹:
-> menu -> product (while pressing option) -> Clean build folder
-> 菜单 -> 产品(同时按下选项)-> 清理构建文件夹
or
或者
option + shift + command + K
option + shift + command + K
回答by D. Pratt
On Xcode 9 getting error while building for archive: What worked for me was to clean my project, and then build for a simulator device, and then try to build for archive again. Xcode is rather temperamental sometimes...
在 Xcode 9 上构建存档时出错:对我有用的是清理我的项目,然后为模拟器设备构建,然后再次尝试构建存档。Xcode 有时相当喜怒无常...
回答by Ivan Koop
回答by Narasimha Nallamsetty
I got the same error I could not find exact solution for that. After some time I realised my problem. My project files are AppDelegate.h
我遇到了同样的错误,我找不到确切的解决方案。一段时间后,我意识到我的问题。我的项目文件是 AppDelegate.h
AppDelegate.m
AppDelegate.m
LoginViewcontroller.h
登录视图控制器.h
LoginViewXontroller.m
登录ViewXontroller.m
LoginViewController.xib
登录视图控制器.xib
I have added one new storyboard file. And I changed label and button connections from nib(.xib) file to storyboard file. After that I got this error.
我添加了一个新的故事板文件。我将标签和按钮连接从 nib(.xib) 文件更改为故事板文件。之后我得到了这个错误。
I removed connections from storyboard and added connections to .xib file again. clean and build that's it my problem is solved. I hope it will helpful to someone..
我从故事板中删除了连接并再次添加了到 .xib 文件的连接。清理并构建就是这样我的问题解决了。我希望它会对某人有所帮助..