Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

CRASH version 2.0.7 #650

Closed
nakhli opened this issue Dec 30, 2015 · 2 comments
Closed

CRASH version 2.0.7 #650

nakhli opened this issue Dec 30, 2015 · 2 comments

Comments

@nakhli
Copy link

nakhli commented Dec 30, 2015

xctool crashing on both local machine and travis vm

2015-12-30 09:00:25.796 xctool[1126:5255] *** Assertion failure in cpu_type_t CpuTypeForTestBundleAtPath(NSString *__strong)(), /tmp/xctool20151025-93446-4sacdx/xctool-0.2.7/xctool/xctool/XCToolUtil.m:900
2015-12-30 09:00:25.923 xctool[1126:5255] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Bundle's executable code doesn't support nor i386, nor x86_64 CPU types. Bundle path: /Users/travis/Library/Developer/Xcode/DerivedData/XXXX-audhwslevhubcqccczwrvjdxjewm/Build/Products/Debug-iphoneos/XXXXStaging.app, supported cpu types: (
    12,
    16777228
).'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff94f60e32 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fff97d61dd4 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff94f65b0a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00007fff8f8219ee -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
    4   xctool                              0x000000010c643483 CpuTypeForTestBundleAtPath + 1531
    5   xctool                              0x000000010c6642e5 -[SimulatorInfo testHostPathCpuType] + 63
    6   xctool                              0x000000010c6643a0 -[SimulatorInfo simulatedCpuType] + 56
    7   xctool                              0x000000010c664574 -[SimulatorInfo simulatedDeviceInfoName] + 302
    8   xctool                              0x000000010c664b69 -[SimulatorInfo maxSdkVersionForSimulatedDevice] + 56
    9   xctool                              0x000000010c664ce9 -[SimulatorInfo simulatedSdkVersion] + 134
    10  xctool                              0x000000010c664fa2 -[SimulatorInfo systemRootForSimulatedSdk] + 40
    11  xctool                              0x000000010c664e72 -[SimulatorInfo simulatedSdkName] + 156
    12  xctool                              0x000000010c653012 +[RunTestsAction commonOCUnitEventInfoFromTestableExecutionInfo:action:] + 230
    13  xctool                              0x000000010c653251 +[RunTestsAction eventForBeginOCUnitFromTestableExecutionInfo:action:] + 50
    14  xctool                              0x000000010c65392a __158-[RunTestsAction blockForTestable:focusedTestCases:allTestCases:testableExecutionInfo:testableTarget:isApplicationTest:arguments:environment:testRunnerClass:]_block_invoke + 290
    15  xctool                              0x000000010c6556ad __56-[RunTestsAction runTestables:options:xcodeSubjectInfo:]_block_invoke433 + 336
    16  xctool                              0x000000010c654ded -[RunTestsAction runTestables:options:xcodeSubjectInfo:] + 5030
    17  xctool                              0x000000010c652dec -[RunTestsAction performActionWithOptions:xcodeSubjectInfo:] + 1874
    18  xctool                              0x000000010c668436 -[TestAction performActionWithOptions:xcodeSubjectInfo:] + 106
    19  xctool                              0x000000010c63dc2c -[XCTool run] + 3316
    20  xctool                              0x000000010c63c572 main + 1064
    21  xctool                              0x000000010c639224 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/travis/build.sh: line 45:  1126 Abort trap: 6           xctool -workspace XXXX.xcworkspace -scheme XXXXStaging build test

command:

xctool -workspace XXXX.xcworkspace -scheme XXXXStaging build test

xctool version: 0.2.7
@AlanKeiss

@ExtremeMan
Copy link
Contributor

Looks like you have some problems with how your test bundle is built. Run file <test_bundle> and validate architectures included in the binary. You should see there at least one binary supported by iOS simulators.

@nakhli
Copy link
Author

nakhli commented Dec 31, 2015

fixed the issue by adding

xcode_sdk: iphonesimulator9.2

to my .travis.yml. not sure why.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants