Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 运行测试时,Xcode 6.1和Xctool失败_Ios_Xcode_Xctool - Fatal编程技术网

Ios 运行测试时,Xcode 6.1和Xctool失败

Ios 运行测试时,Xcode 6.1和Xctool失败,ios,xcode,xctool,Ios,Xcode,Xctool,我有工作测试,但当我尝试测试它们时,它们在prepaire emulator上失败了。我曾尝试使用xctool进行构建。我在Jenkins中运行,我的节点通过jnlp连接,我也尝试直接在服务器上构建它,但什么都没有。如何修复它? Xcode 6.1 我尝试的构建命令: 1) iphone 5的命令: xctool -scheme QA -sdk iphonesimulator -destination 'name=iPhone 5' test 此处输出: run-test QVCTests.

我有工作测试,但当我尝试测试它们时,它们在prepaire emulator上失败了。我曾尝试使用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)
xcodebuild[12769:4407]  iPhoneSimulator: Could not launch simulator: -600
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
 iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
2) 命令:

此处输出:

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)
xcodebuild[12769:4407]  iPhoneSimulator: Could not launch simulator: -600
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
 iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
3) 命令:

此处输出:

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)
xcodebuild[12769:4407]  iPhoneSimulator: Could not launch simulator: -600
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
 iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
生成子进程时出错:可执行文件中的CPU类型错误

4) 命令

此处输出:

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)
xcodebuild[12769:4407]  iPhoneSimulator: Could not launch simulator: -600
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
 iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
生成子进程时出错:可执行文件中的CPU类型错误

这表明可执行文件是为不正确的体系结构构建的。考虑到您在iPhone5模拟器中运行,您的可执行文件需要为i386构建


如果这不是问题所在,请提供更多的构建日志,以显示如何构建、链接和安装可执行文件。

对于我来说,只需重新启动Mac即可解决问题

Could not launch simulator: -600
错误