当travis尝试运行测试时,XCTest崩溃

时间:2014-05-08 14:16:37

标签: ios travis-ci xctool

我正在尝试设置travis来运行我现有的测试。我正在使用XCTest并且可以使用xctool test在本地成功运行测试。我有.xctool-args文件设置,包含所有必需的配置。在Travis上构建完成但xctest崩溃了。这是崩溃日志

Test did not run: the test bundle stopped running or crashed before the test suite started.
CRASH REPORT: xctest_2014-05-07-064505_Traviss-Mac-32.crash
Process:         xctest [1517]
Path:            /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Developer/usr/bin/xctest
Identifier:      xctest
Version:         13.2
Code Type:       X86 (Native)
Parent Process:  sim [1514]
Responsible:     xctest [1517]
User ID:         501
Date/Time:       2014-05-07 06:44:57.294 -0700
OS Version:      Mac OS X 10.9.2 (13C64)
Report Version:  11
Anonymous UUID:  AFA30136-CB6D-6480-DAA2-9E74869E8355
Crashed Thread:  8  Dispatch queue: com.apple.root.default-priority
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000704f535a
VM Regions Near 0x704f535a:
    __LINKEDIT             000000002010d000-0000000020113000 [   24K] r--/rwx SM=COW  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Developer/Library/Frameworks/XCTest.framework/XCTest
--> 
    __TEXT                 000000008fef2000-000000008ff25000 [  204K] r-x/rwx SM=COW  /usr/lib/dyld
Application Specific Information:
objc_msgSend() selector name: reachabilityRef
iPhone Simulator (external launch) , iPhone OS 7.1 (unknown/11D167)

1 个答案:

答案 0 :(得分:2)

这更像是一种解决方法,而不是一种答案。使用xctool进行本地测试但是tract上的xctool似乎存在问题。我使用xcodebuild而不是使用xctool的默认测试脚本解决了我的问题。

language: objective-c
script:
- xcodebuild -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone Retina
  (4-inch),OS=7.1'  test
相关问题