在MacBook Air上的新OS X Lion上安装了Xcode 4.2,无法编译我的旧项目。创建新的单窗口项目(基于视图的应用程序) - 不做任何更改,只是尝试编译它并得到错误:
CompileXIB Test3/en.lproj/ViewController.xib
cd /Volumes/MacExt/Projects/iOS/Test3
setenv IBC_MINIMUM_COMPATIBILITY_VERSION 5.0
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/lial/Library/Developer/Xcode/DerivedData/Test3-fvcbdbtitujnwabzsgjgcbugfmoy/Build/Products/Debug-iphonesimulator/Test3.app/en.lproj/ViewController.nib /Volumes/MacExt/Projects/iOS/Test3/Test3/en.lproj/ViewController.xib
--sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
Command /Developer/usr/bin/ibtool failed with exit code 255
尝试打开xib时出现内部错误并选择:崩溃并继续
Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state. Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.
请帮帮我,我该如何解决这个问题? Xcode不稳定吗?或者我的某些项目设置不正确?
答案 0 :(得分:0)
我刚刚经历过同样的事情。由于git合并,它在故事板中是一个重复的UILabel。如果两个UI元素具有相同的内部ID,显然Xcode将崩溃。
我找到责任问题的方法是: