簡體   English   中英

Xcode 6.1和Xctool在運行測試時失敗

[英]Xcode 6.1 and Xctool failed when running tests

我已經進行了工作測試,但是當我嘗試對其進行測試時,它們在預配對模擬器上失敗了。 我試圖用xctool構建。 我在Jenkins中運行,我的節點通過jnlp連接,我也嘗試直接在服務器上構建它,什么也沒有。 如何解決? Xcode 6.1我的構建命令,我嘗試:

1)iPhone 5的命令:

xctool -scheme QA -sdk iphonesimulator -destination 'name=iPhone 5'  test

這里輸出:

run-test QVCTests.xctest (iphonesimulator8.2, iPhone 5, application-test)
[Info] Installing 'com.qvc.iphoneapp' ...2015-04-16 14:43:56.315 xctool[12732:2a07] [MT] iPhoneSimulator: Could not launch simulator: -600
[Warning] Tried to install the test host app 'com.qq.iphoneapp' but failed. (287 ms)
[Info] Preparing test environment failed; will retry 2 more times (0 ms)
[Info] Shut down iOS Simulator... (0 ms)
[Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (15 ms)
[Info] Reset iOS simulator content and settings at path "..../Devices/260A25AD-4160-42A2-AC06-7F6A069093AE/data" (4089 ms)
[Info] Installing 'com.qvc.iphoneapp' ...2015-04-16 14:44:01.540 xctool[12732:2a07] [MT] iPhoneSimulator: Could not launch simulator: -600
[Warning] Tried to install the test host app 'com.qq.iphoneapp' but failed. (11 ms)
[Info] Preparing test environment failed; will retry 1 more time (0 ms)
[Info] Shut down iOS Simulator... (0 ms)
[Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (14 ms)
[Info] Reset iOS simulator content and settings at path "../Devices/260A25AD-4160-42A2-AC06-7F6A069093AE/data" (3621 ms)
[Info] Installing 'com.qq.iphoneapp' ...2015-04-16 14:44:06.191 xctool[12732:2a07] [MT] iPhoneSimulator: Could not launch simulator: -600
[Warning] Tried to install the test host app 'com.qq.iphoneapp' but failed. (12 ms)

2)命令:

xcodebuild -scheme QA -sdk iphonesimulator -destination 'name=iPhone 5' test

這里輸出:

xcodebuild[12769:4407]  iPhoneSimulator: Could not launch simulator: -600

3)命令:

 xctool -scheme QA -sdk iphonesimulator8.2 -destination 'platform=iOS Simulator,name=iPhone 6' -workspace project.xcworkspace -configuration Acceptance test

這里輸出:

Failed to query the list of test cases in the test bundle: 2015-04-16 ...Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/sim: No simulator devices appear to be running.  Setting data directories to /var/empty.
 sim[7634:303] DYLD_INSERT_LIBRARIES contains possible bad values.  Caller beware: /usr/local/Cellar/xctool/HEAD/libexec/lib/otest-query-lib-ios.dylib

產生子進程錯誤:可執行文件中的CPU類型錯誤

4)命令

xcodebuild -scheme QA -sdk iphonesimulator -destination 'name=iPhone 6' test

這里輸出:

 iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.

對我來說,只需重啟Mac就可以解決

Could not launch simulator: -600

錯誤。

產生子進程錯誤:可執行文件中的CPU類型錯誤

這表明可執行文件是為不正確的體系結構構建的。 假設您正在iPhone 5 Simulator中運行,則需要為i386構建可執行文件。

如果這不是問題,請提供更多的構建日志,以顯示如何構建,鏈接和安裝可執行文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM