facebookarchive / xctool

An extension for Apple's xcodebuild that makes it easier to test iOS and macOS apps.
Apache License 2.0
6.91k stars 738 forks source link

Using new build system #777

Open onmyway133 opened 4 years ago

onmyway133 commented 4 years ago

Trying xctool with Xcode 11, and get this issue

 xcodebuild build Development
2020-01-31 11:26:40.909 xctool[6913:81211] *** Assertion failure in BOOL LaunchXcodebuildTaskAndFeedEventsToReporters(NSTask *__strong, NSArray *__strong, NSString *__autoreleasing *, long long *)_block_invoke(), /tmp/xctool-20191211-22218-1r1jst1/xctool-0.3.7/Common/XCToolUtil.m:417
2020-01-31 11:26:40.911 xctool[6913:81211] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Got error while trying to deserialize event 'note: Using new build system': The data is not in the correct format.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff34ef6f53 __exceptionPreprocess + 250
    1   libobjc.A.dylib                     0x00007fff6afbc835 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff34f12810 +[NSException raise:format:arguments:] + 88
    3   Foundation                          0x00007fff37643a20 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
    4   xctool                              0x000000010df0d77a __LaunchXcodebuildTaskAndFeedEventsToReporters_block_invoke + 793
    5   xctool                              0x000000010df4ad84 __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke + 165
    6   xctool                              0x000000010df4b055 __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke.22 + 629
    7   xctool                              0x000000010df4b1a3 __ReadOutputsAndFeedOuputLinesToBlockOnQueue_block_invoke_2.55 + 181
    8   libdispatch.dylib                   0x00007fff6c2f677f ___dispatch_operation_deliver_data_block_invoke + 109
    9   libdispatch.dylib                   0x00007fff6c2ce583 _dispatch_call_block_and_release + 12
    10  libdispatch.dylib                   0x00007fff6c2cf50e _dispatch_client_callout + 8
    11  libdispatch.dylib                   0x00007fff6c2d4ace _dispatch_lane_serial_drain + 597
    12  libdispatch.dylib                   0x00007fff6c2d5485 _dispatch_lane_invoke + 414
    13  libdispatch.dylib                   0x00007fff6c2d4980 _dispatch_lane_serial_drain + 263
    14  libdispatch.dylib                   0x00007fff6c2d5452 _dispatch_lane_invoke + 363
    15  libdispatch.dylib                   0x00007fff6c2dea9e _dispatch_workloop_worker_thread + 598
    16  libsystem_pthread.dylib             0x00007fff6c52871b _pthread_wqthread + 290
    17  libsystem_pthread.dylib             0x00007fff6c52857b start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
ExtremeMan commented 4 years ago

Which xctool command did you run?

onmyway133 commented 4 years ago

@ExtremeMan Hi, I use xctool -project ABC.xcodeproj -scheme Staging

ExtremeMan commented 4 years ago

Did you build project for testing using xcodebuild before invoking xctool?