我遇到与this one
类似的问题我正在尝试使用xctool在Xcode
上实施Jenkins
的测试报告。在本地终端中执行此命令,它按预期工作:
/usr/local/bin/xctool -workspace Sample.xcworkspace -scheme Samplescheme -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO WANT_IOS_SIM=YES -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' clean test -reporter junit:test-reports/reports.xml
但是,在Jenkins
上使用完全相同的执行Shell命令时,会失败,并显示以下错误:
/usr/local/bin/xctool -workspace Sample.xcworkspace -scheme Samplescheme -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO WANT_IOS_SIM=YES -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' clean test -reporter junit:test-reports/reports.xml
Build step 'Execute shell' marked build as failure
Recording test results
Finished: FAILURE
注意:执行shell只包含那一行(确定错误是由该行引起的)。另外fyi,项目正在使用cocoapods
知道什么会导致这种行为吗?