We do have troubles getting our CI to work with Xcode. We encounter the issue Could not determine bundle identifier for xxxTest TEST_HOST: some path that does not exist
.
What we have done so far:
- On the CI Machine we are able to run all tests on the device, but if we trigger it with a commit the CI does end in that error.
- We had that issue on other machines too, when we tried to run the tests of the application. We fixed that by cleaning the machine and reboot the devices.(Had do fix some scheme settings) Not we can run all tests but we run into the issue sometimes without any reason.
- We also double checked the schemes. The Host Application is set in every Tests scheme to the App itself.
Our project has the following targets:
- App
- App Unit Tests
- App UI Tests
- AppeareanceKit (Module)
- AppeareanceKit Unit Tests
- Models (Module)
- Models Unit Test
Found solution:
- Diabling the Tests except the App UITest
- Run the tests once
- Enable all Tests
- Run the tests
Question:
- What is happening there? How can we prevent from having that issue over and over again?
Known questions:
Xcode 8 Beta - Convert to Current Swift Syntax Failed: Could not find test host