使用 LLVM 4.1 编译的 Xcode 4.5 中的错误 255

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12604766/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:39:01  来源:igfitidea点击:

Error 255 in Xcode 4.5 compiling with LLVM 4.1

iosxcodellvmios6

提问by Dario

I'm trying to compile my project with the latest xcode + sdk 6.0 when the building is almost done, I got this error:

当构建几乎完成时,我正在尝试使用最新的 xcode + sdk 6.0 编译我的项目,但出现此错误:

2012-09-26 16:52:24.714 ibtoold[5603:b03] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-2840/Framework/Document/IBDocument.m:1514
Details:  Some objects didn't get the ibBeginArchivingDocument:withContext: callback. A class has probably overridden the method without calling through to super.
Object:   <IBCocoaTouchDocument: 0x40072df00>
Method:   -willArchiveWithContext:
Thread:   <NSThread: 0x40010a260>{name = (null), num = 1}
Hints: None
Backtrace:  0  0x000000010550e44c -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundatio  
1  0x000000010550e2a5 _DVTAssertionFailureHandler (in DVTFoundatio  
2  0x0000000104b35245 -[IBDocument willArchiveWithContext:] (in IDEInterfaceBuilderKi  
3  0x00000001086407d6 (in IDEInterfaceBuilderCocoaTouchIntegratio  
4  0x0000000108640c3a (in IDEInterfaceBuilderCocoaTouchIntegratio  
5  0x0000000104b44745 __47-[IBDocument compiledPackageWithOptions:error:]_block_invoke_0 (in IDEInterfaceBuilderKi  
6  0x0000000104b5b9a1 -[IBDocument assertIfArbitrationIsScheduledDuring:] (in IDEInterfaceBuilderKi  
7  0x0000000104b44710 -[IBDocument compiledPackageWithOptions:error:] (in IDEInterfaceBuilderKi  
8  0x0000000104a46f90 (in ibtool  
9  0x0000000104a440e8 (in ibtool 
10  0x0000000104a43c5f (in ibtoold 
11  0x0000000104a43b53 (in ibtoold 
12  0x0000000104a50165 (in ibtoold 
13  0x0000000104a43684 (in ibtoold 
14  0x0000000104a448f1 (in ibtoold 
15  0x0000000104a42524 (in ibtoold 
16  0x000000000000000 Command /Applications/Xcode4.5SDK6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255

Only for a XIB I'll not able to build with success...have you got the solution? thanks! Dario

仅适用于我无法成功构建的 XIB……您有解决方案吗?谢谢!达里奥

回答by David H

Note: I edited this a few times as new ideas came to mind so its a bit jerky I know.

注意:当我想到新想法时,我对其进行了几次编辑,所以我知道它有点生涩。

1)Look at the command line tool 'ibtool' - there is a man page - and you can try manually to translate the xib file and maybe validate it (I've not used this in years and years)

1)查看命令行工具 'ibtool' - 有一个手册页 - 你可以尝试手动翻译 xib 文件并验证它(我多年来一直没有使用过这个)

2) Other ideas (but failing those, you should burn a DTS Incident - you get 2 per year - and try to get some help from an Apple engineer):

2)其他想法(但如果失败了,你应该烧掉一个 DTS 事件——你每年得到 2 个——并尝试从 Apple 工程师那里获得一些帮助):

  • clean your project
  • delete the cached data (Organizer->Projects->Derived Data tap 'Delete...'
  • insure that for this XIB the proper versioning is set (select XIB, 3rd Xcode tab on right, File options:
  • 清理你的项目
  • 删除缓存数据(Organizer->Projects->Derived Data 点击“Delete...”
  • 确保为此 XIB 设置了正确的版本控制(选择 XIB,右侧的第三个 Xcode 选项卡,文件选项:

enter image description here

在此处输入图片说明

  • close the project
  • quit Xcode
  • reopen Xcode, then the product
  • try again
  • 关闭项目
  • 退出 Xcode
  • 重新打开 Xcode,然后打开产品
  • 再试一次

If this does not do it, use the DTS incident, or post on the internal Apple lists - the ones you have to login for - and maybe someone there knows of an issue

如果这样做不行,请使用 DTS 事件,或发布到内部 Apple 列表(您必须登录的列表)上,也许那里的某个人知道问题

3) If you are truly desperate, make a copy of your xib file. Then start deleting objects, the easiest first, and try to build. At some point it may compile. Then re-add the other objects back.

3) 如果您真的很绝望,请复制您的 xib 文件。然后开始删除对象,首先是最简单的,然后尝试构建。在某些时候它可能会编译。然后重新添加其他对象。

4) If 3 does not do it, blow the xib file away, create a new one, and essentially reconstruct what you have.

4) 如果 3 不这样做,请将 xib 文件吹走,创建一个新文件,然后基本上重建您拥有的文件。

EDIT: (update in comments by original poster)

编辑:(更新原始海报的评论)

5) Reboot the machine and try again.

5) 重新启动机器并重试。

回答by Marcelo dos Santos

"Clean" my project solved my problem. I'm using XCode 4.5.

“清理”我的项目解决了我的问题。我正在使用 XCode 4.5。

回答by Vincent Wayne

The following steps work for me.

以下步骤对我有用。

Thanks David for steps #1 to #4

感谢大卫的步骤 #1 到 #4

  1. Clean my project build
  2. Delete the cached data (Organizer->Projects->Derived Data tap 'Delete...'
  3. Close the project
  4. Quit Xcode (I did stop at this step and tried to reopen Xcode but the error remains)
  5. Restart my computer. (Tried to open Xcode afterwards but the same build error still happens)
  6. Make a copy of Xcode (I put the copy at ~/Desktop)
  7. Delete the original copy at /Applications
  8. Put the copy of Xcode back to /Applications
  9. Done
  1. 清理我的项目构建
  2. 删除缓存数据(Organizer->Projects->Derived Data 点击“Delete...”
  3. 关闭项目
  4. 退出 Xcode(我确实停在这一步并尝试重新打开 Xcode 但错误仍然存​​在)
  5. 重新启动我的电脑。(之后尝试打开 Xcode,但仍然发生相同的构建错误)
  6. 制作一份 Xcode 的副本(我将副本放在 ~/Desktop 中)
  7. 删除 /Applications 中的原始副本
  8. 将 Xcode 的副本放回 /Applications
  9. 完毕