2012-04-21 59 views
2

最近你好我重新安裝了我的mac os x機器我有以下配置: 1. Mac Os x Snow Leopard 10.6.8 2. Xcode 4.2(4C199)for snow leopard with sdk 10.6 3. Firebreath項目1.6 4. CMAKE 2.8-8用XCODE 4.2構建FireBReath插件時出現內部錯誤

我已經創建了一個plugIn測試項目,運行prepmac.sh命令後,一切都建好了。最後我用XCODE打開它並開始構建過程。

10分鐘後,過程中會生成崩潰錯誤。

出現消息:內部錯誤,XCODE遇到內部邏輯錯誤。

ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport- 928/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Target.subproj/PBXTarget.m:4146 
Details: target 'azTest' has been asked for its build context but it does not belong to a project 
Object: <PBXNativeTarget: 0x200f62f00> 
Method: -targetBuildContext 
Thread: <NSThread: 0x2019f6fa0>{name = (null), num = 25} 
Hints: None 

    Backtrace: 
    0 0x00000001009e6646 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit) 
    1 0x000000010006aaa4 _DVTAssertionFailureHandler (in DVTFoundation) 
    2 0x0000000116655973 -[PBXTarget targetBuildContext] (in DevToolsCore) 
    3 0x000000011665908d -[PBXTarget(XCBuildables) buildDidFinishWithBuildLogRecorder:] (in DevToolsCore) 
    4 0x00000001167e0222 -[Xcode3TargetBuildableSnapshot buildForBuilderDidFinish:] (in DevToolsCore) 
    5 0x000000010068997a -[IDEBuildableSnapshot performBuildForBuilder:buildCommand:buildOnlyTheseFiles:] (in IDEFoundation) 
    6 0x00000001005c3753 -[IDEBuilder main] (in IDEFoundation) 
    7 0x00007fff83a75dd0 -[__NSOperationInternal start] (in Foundation) 
    8 0x00007fff83b53bd5 ____NSOQSchedule_block_invoke_2 (in Foundation) 
    9 0x00007fff81d47d64 _dispatch_call_block_and_release (in libSystem.B.dylib) 
10 0x00007fff81d262d1 _dispatch_worker_thread2 (in libSystem.B.dylib) 
11 0x00007fff81d25c08 _pthread_wqthread (in libSystem.B.dylib) 
12 0x00007fff81d25aa5 start_wqthread (in libSystem.B.dylib) 

if I choose continue XCODE Finally crash with this detail: 


objc[2341]: garbage collection is ON 
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0]' 
*** Call stack at first throw: 
(
    0 CoreFoundation      0x00007fff8628a784 __exceptionPreprocess + 180 
    1 libobjc.A.dylib      0x00007fff80bd1f03 objc_exception_throw + 45 
    2 CoreFoundation      0x00007fff862344d7 -[__NSPlaceholderArray initWithObjects:count:] + 407 
    3 CoreFoundation      0x00007fff862408e1 +[NSArray arrayWithObject:] + 49 
    4 DevToolsCore      0x000000011663a72e -[PBXTarget filePathForBuildableProductFileMapForWorkspaceArenaSnapshot:] + 79 
    5 DevToolsCore      0x000000011664f0b7 -[PBXTarget(XCBuildables) buildDidFinishWithBuildLogRecorder:] + 79 
    6 DevToolsCore      0x00000001167d6222 -[Xcode3TargetBuildableSnapshot buildForBuilderDidFinish:] + 99 
    7 IDEFoundation      0x000000010068997a -[IDEBuildableSnapshot performBuildForBuilder:buildCommand:buildOnlyTheseFiles:] + 1397 
    8 IDEFoundation      0x00000001005c3753 -[IDEBuilder main] + 1136 
    9 Foundation       0x00007fff83a75dd0 -[__NSOperationInternal start] + 681 
    10 Foundation       0x00007fff83b53bd5 ____NSOQSchedule_block_invoke_2 + 129 
    11 libSystem.B.dylib     0x00007fff81d47d64 _dispatch_call_block_and_release + 15 
    12 libSystem.B.dylib     0x00007fff81d262d1 _dispatch_worker_thread2 + 239 
    13 libSystem.B.dylib     0x00007fff81d25c08 _pthread_wqthread + 353 
    14 libSystem.B.dylib     0x00007fff81d25aa5 start_wqthread + 13 
) 

我不能得到建設過程正常工作。所以我決定在這裏尋找幫助。 我不得不提到,我在另一臺機器上測試了與MAC OS X Lion相同的項目,它的工作非常完美。

回答

0

這不是一個答案和更多的解決方法; XCode 4似乎在任何使用包括FireBreath項目的boost的項目中使用了大量內存。嘗試從命令行構建:

cmake --build path/to/build/ 

看看是否有效。