I have similar issue as this one
I am trying to implement Test Reports of Xcode
on Jenkins
using xctool. Executing this command in the local terminal it works as expected:
/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
However using exactly the same one on Jenkins
as an Execute Shell command, fails with this error:
/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
Note: Execute shell contains only that single line (it is for sure that the error is caused from that line). Also fyi, project is using cocoapods
Any idea what can cause this behaviour?