升级xcode8造成xctool无法使用

之前的项目是 xctool 进行打包的,升级到 xcode8 以及 Sierra 系统后,发现 xctool 总是编译报错:

2016-09-29 17:19:07.712 xctool[39107:1358070] *** Assertion failure in __LaunchXcodebuildTaskAndFeedEventsToReporters_block_invoke(), /tmp/xctool20160411-73857-17y7ykv/xctool-0.2.9/Common/XCToolUtil.m:380
2016-09-29 17:19:07.716 xctool[39107:1358070] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Got error while trying to deserialize event 'User defaults from command line:': The data is not in the correct format.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff947e952b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00007fffa8ec1cad objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff947ee232 +[NSException raise:format:arguments:] + 98
    3   Foundation                          0x00007fff9628981a -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
    4   xctool                              0x000000010601e8c4 __LaunchXcodebuildTaskAndFeedEventsToReporters_block_invoke + 441
    5   xctool                              0x0000000106059c39 __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke + 165
    6   xctool                              0x0000000106059f42 __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke.26 + 612
    7   xctool                              0x000000010605a0ae __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke_2.49 + 188
    8   libdispatch.dylib                   0x00007fffa978c638 ___dispatch_operation_deliver_data_block_invoke + 120
    9   libdispatch.dylib                   0x00007fffa9771f5f _dispatch_call_block_and_release + 12
    10  libdispatch.dylib                   0x00007fffa9769128 _dispatch_client_callout + 8
    11  libdispatch.dylib                   0x00007fffa977fb97 _dispatch_queue_serial_drain + 896
    12  libdispatch.dylib                   0x00007fffa9771d41 _dispatch_queue_invoke + 1046
    13  libdispatch.dylib                   0x00007fffa977f9d2 _dispatch_queue_serial_drain + 443
    14  libdispatch.dylib                   0x00007fffa9771d41 _dispatch_queue_invoke + 1046
    15  libdispatch.dylib                   0x00007fffa976aee0 _dispatch_root_queue_drain + 476
    16  libdispatch.dylib                   0x00007fffa976acb7 _dispatch_worker_thread3 + 99
    17  libsystem_pthread.dylib             0x00007fffa99b5746 _pthread_wqthread + 1299
    18  libsystem_pthread.dylib             0x00007fffa99b5221 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException

[1]    39107 abort      xctool -workspace test.xcworkspace -scheme test archive -archivePath 

无奈之下,又切换回 xcodebuild 工具了。

你可能感兴趣的:(升级xcode8造成xctool无法使用)