TVOS xcode test failed, error: exit status 70

Hi @yogaglo ,

The exact reason should be in the raw-xcodebuild-output.log file, as mentioned in your build’s log:

e[33;1mxcode test exit code: 70e[0m
e[31;1mxcode test failed, error: exit status 70e[0m
e[33;1mIf you can't find the reason of the error in the log, please check the raw-xcodebuild-output.log
The log file is stored in $BITRISE_DEPLOY_DIR, and its full path
is available in the $BITRISE_XCODE_RAW_TEST_RESULT_TEXT_PATH environment variable.

You can check the full, unfiltered and unformatted Xcode output in the file: 
/Users/vagrant/deploy/raw-xcodebuild-output.log 
If you have the Deploy to Bitrise.io step (after this step), 
that will attach the file to your build as an artifact!e[0m

You can find a guide about how you can get that Xcode exit code 65 / exit code 66 / raw-xcodebuild-output.log

But in your case, based on what you wrote, that it worked with Xcode 8 and now you get an exit code 70 from xcode (which is usually "invalid configuration) I’m pretty certain that this is because the tvOS device IDs changed in Xcode 9.

If you check the device IDs in Xcode 8.3 the device ID was Apple TV 1080p: https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-8.3.x.log#L268

In Xcode 9 / iOS 11 this was changed, there are now 3 different device IDs but Apple TV 1080p is no longer an option: https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-9.0.x.log#L278

The current options (Xcode 9.0.1):

Apple TV (com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p)
Apple TV 4K (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K)
Apple TV 4K (at 1080p) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p)

So the solution should be to simply change the Simulator Device option of the Xcode Test step from Apple TV 1080p to any of the currently available device IDs (Apple TV / Apple TV 4K / Apple TV 4K (at 1080p) ).

Let us know if this wouldn’t help or if you need more info / help! :wink:
Happy Building!