每當我向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