每当我向Xcode添加新语言(项目 - >本地化 - > +),Xcode立即崩溃。以下是错误:当为本地化/翻译添加新语言时,Xcode崩溃
Process: Xcode [1362]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.4.1 (1488)
Build Info: IDEApplication-1488000000000000~2
App Item ID: 497799835
App External ID: 9950605
Code Type: X86-64 (Native)
Parent Process: launchd [132]
User ID: 501
Date/Time: 2012-09-10 11:53:15.906 -0700
OS Version: Mac OS X 10.8.1 (12B19)
Report Version: 10
Interval Since Last Report: 3309 sec
Crashes Since Last Report: 5
Per-App Interval Since Last Report: 3139 sec
Per-App Crashes Since Last Report: 5
Anonymous UUID: 6F2A1E95-B759-4403-BA5B-A1D00B69A631
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4F1003
ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Xcode3Model/Xcode3VariantGroup.m:709
Details: Assertion failed: [newFilePathString hasPrefix:self.resolvedFilePath.pathString]
Object: <Xcode3VariantGroup: 0x4017fbe00>
Method: -addNewReferenceForLocale:filePath:fileType:
Thread: <NSThread: 0x40030a220>{name = (null), num = 1}
Hints: None
我以前有过这个问题,事实证明,这是因为我的“复制捆绑资源”部分的构建设置中的任何问题(其中一个列表中的文件实际上已被删除,因此在此页面上显示红色通知)。一旦我解决了这个问题,当我添加本地化时,XCode停止了崩溃。你可以随时进行快速检查,看看是否是同样的问题。 – Clafou
不适合我 - 但可能适用于其他人:) – toblerpwn