Hi All:
We've added Unit tests to our iOS project and want them to run when the build completes. We're having problems trying to run the tests.
So we have a Xcode step in our Jenkins configuration. The custom build options are:
-destination 'platform=iOS Simulator,name=iPhone 6' test.
At the end of the build, which is successful, we get the following error:
xcodebuild: error: Failed to build workspace xxxxxx with scheme xxxxxx.
Reason: A build only device cannot be used to run this target.
Build step 'Xcode' marked build as failure
Recording test results
ERROR: Publisher 'Publish JUnit test result report' failed: No test report files were found. Configuration error?
Build step 'Upload to HockeyApp' marked build as failure
There is a device connected to the computer running Jenkins if that is of any importance.
Is there anything else we need to do to get our unit tests to run? Is there a current URL describing the process? The one I read on wiki.jenkins... referred to iOS 4.1, a little old.
Thanks in advance for your time.
Best Regards
John