{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/xctool/issues/531","labels_url":"https://api.github.com/repos/facebook/xctool/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xctool/issues/531/comments","events_url":"https://api.github.com/repos/facebook/xctool/issues/531/events","html_url":"https://github.com/facebook/xctool/issues/531","id":90452539,"number":531,"title":"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Bundle's executable code doesn't support nor i386, nor x86_64 CPU types","user":{"login":"gobadiah","id":2059810,"avatar_url":"https://avatars.githubusercontent.com/u/2059810?v=3","gravatar_id":"","url":"https://api.github.com/users/gobadiah","html_url":"https://github.com/gobadiah","followers_url":"https://api.github.com/users/gobadiah/followers","following_url":"https://api.github.com/users/gobadiah/following{/other_user}","gists_url":"https://api.github.com/users/gobadiah/gists{/gist_id}","starred_url":"https://api.github.com/users/gobadiah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gobadiah/subscriptions","organizations_url":"https://api.github.com/users/gobadiah/orgs","repos_url":"https://api.github.com/users/gobadiah/repos","events_url":"https://api.github.com/users/gobadiah/events{/privacy}","received_events_url":"https://api.github.com/users/gobadiah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-23T18:03:43Z","updated_at":"2015-06-23T19:36:06Z","closed_at":"2015-06-23T19:36:06Z","body":"Hello,\r\n\r\nI wanted to try running tests from command line using xctool, I installed it using brew, version 0.2.4. Xcode version is Version 6.3.2 (6D2105). There is no custom code in the project, however there are Pods installed.\r\nThe command line used is \r\n\r\n    xctool -workspace MyProject.xcworkspace -scheme MyProject test\r\n\r\n The build phase goes smoothly, but then :\r\n\r\n      [Info] Collecting info for testables... (764 ms)\r\n    2015-06-23 19:52:50.974 xctool[17098:2878558] *** Assertion failure in cpu_type_t CpuTypeForTestBundleAtPath(NSString *__strong)(), /tmp/xctool20150609-68762-h8zitt/xctool-0.2.4/xctool/xctool/XCToolUtil.m:877\r\n\r\n    2015-06-23 19:52:51.103 xctool[17098:2878558] *** 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/username/Library/Developer/Xcode/DerivedData/MyProject-cpunokapnwrsyjcatxsehhfjbzbq/Build/Products/Debug-iphoneos/MyProjectTests.xctest, supported cpu types: (\r\n        12,\r\n        16777228\r\n    ).'\r\n    *** First throw call stack:\r\n    (\r\n        0   CoreFoundation                      0x00007fff92fc803c __exceptionPreprocess + 172\r\n        1   libobjc.A.dylib                     0x00007fff8e89676e objc_exception_throw + 43\r\n        2   CoreFoundation                      0x00007fff92fc7e1a +[NSException raise:format:arguments:] + 106\r\n        3   Foundation                          0x00007fff8af15753 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169\r\n        4   xctool                              0x000000010d292316 CpuTypeForTestBundleAtPath + 577\r\n        5   xctool                              0x000000010d2942f9 -[OCUnitTestRunner initWithBuildSettings:focusedTestCases:allTestCases:arguments:environment:freshSimulator:resetSimulator:freshInstall:testTimeout:reporters:] + 493\r\n        6   xctool                              0x000000010d2a3bcf __158-[RunTestsAction blockForTestable:focusedTestCases:allTestCases:testableExecutionInfo:testableTarget:isApplicationTest:arguments:environment:testRunnerClass:]_block_invoke + 195\r\n        7   xctool                              0x000000010d2a5991 __56-[RunTestsAction runTestables:options:xcodeSubjectInfo:]_block_invoke400 + 336\r\n        8   xctool                              0x000000010d2a5142 -[RunTestsAction runTestables:options:xcodeSubjectInfo:] + 4913\r\n        9   xctool                              0x000000010d2a3146 -[RunTestsAction performActionWithOptions:xcodeSubjectInfo:] + 1214\r\n        10  xctool                              0x000000010d2b4a46 -[TestAction performActionWithOptions:xcodeSubjectInfo:] + 106\r\n        11  xctool                              0x000000010d28d664 -[XCTool run] + 3329\r\n        12  xctool                              0x000000010d28bfb3 main + 819\r\n        13  xctool                              0x000000010d2891c4 start + 52\r\n    )\r\n    libc++abi.dylib: terminating with uncaught exception of type NSException\r\n    Abort trap: 6\r\n\r\nThanks for your help."},"comment":{"url":"https://api.github.com/repos/facebook/xctool/issues/comments/114618899","html_url":"https://github.com/facebook/xctool/issues/531#issuecomment-114618899","issue_url":"https://api.github.com/repos/facebook/xctool/issues/531","id":114618899,"user":{"login":"ExtremeMan","id":1044236,"avatar_url":"https://avatars.githubusercontent.com/u/1044236?v=3","gravatar_id":"","url":"https://api.github.com/users/ExtremeMan","html_url":"https://github.com/ExtremeMan","followers_url":"https://api.github.com/users/ExtremeMan/followers","following_url":"https://api.github.com/users/ExtremeMan/following{/other_user}","gists_url":"https://api.github.com/users/ExtremeMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ExtremeMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExtremeMan/subscriptions","organizations_url":"https://api.github.com/users/ExtremeMan/orgs","repos_url":"https://api.github.com/users/ExtremeMan/repos","events_url":"https://api.github.com/users/ExtremeMan/events{/privacy}","received_events_url":"https://api.github.com/users/ExtremeMan/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T19:36:06Z","updated_at":"2015-06-23T19:36:06Z","body":"Glad it works for you! Please reopen if you have any other issues/questions."}}