我有和这个类似的问题
我正在尝试使用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
但是,使用与Execute Shell 命令完全相同的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
Build step 'Execute shell' marked build as failure
Recording test results
Finished: FAILURE
注意: Execute shell 只包含那一行(可以确定错误是由那一行引起的)。另外仅供参考,项目正在使用cocoapods
知道什么会导致这种行为吗?