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 project 1.6 4. CMAKE 2.8-8

我创建了一个插件测试项目,运行 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 测试了同一个项目,它运行完美。

4

1 回答 1

0

这不是一个答案,而是一个解决方法;XCode 4 似乎在任何使用 boost 的项目(包括 FireBreath 项目)上使用了大量的内存。尝试从命令行构建:

cmake --build path/to/build/

看看这是否有效。

于 2012-04-22T02:55:39.597 回答