Failed to determine package ID for xxxTest TEST_HOST

We have problems getting our CI to work with Xcode. We are facing a problem 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 can run all the tests on the device, but if we initiate it with a commit, CI will end this error.
  • We had this problem on other machines when we tried to run application tests. We fixed this by cleaning the machine and rebooting the devices. (We fix some scheme settings). We cannot run all the tests, but we sometimes run into a problem for no reason.
  • We also double checked the circuits. The Host application is installed in each test scheme to the application itself.

Our project has the following objectives:

  • applications
  • Application Module Tests
  • App UI Tests
  • AppeareanceKit (module)
  • AppeareanceKit Unit Tests
  • Models (module)
  • Unit Test Models

Found a solution:

  • Disabling tests except for the UITest application
  • Run tests once
  • Include all tests
  • Run tests

Question:

  • What is happening there? How can we prevent this problem over and over again?

Known issues:

Xcode 8 Beta - Convert to current Swift syntax: could not find test node

Tests stop working according to xcode 8 Error TEST_HOST

+8
source share
3 answers

Thus, after many years of this problem, we could find the right flag to fix this problem.

- , .

enter image description here

, , , . .

defaultConfigurationName {projectname}.xcodeproject.

, , - .

+11

.

, , .

, . .

.

testHost

build/{buildConfigurationName}-iphoneos/{schemeName}.app/{appName}

,

build/{buildConfigurationName}-iphoneos/{schemeName}.app/{schemeName}

, Alpha, MyApp MyApp-Alpha,

build/Alpha-iphoneos/MyApp-Alpha.app/MyApp-Alpha

build/Alpha-iphoneos/MyApp-Alpha.app/MyApp

, ... , .

0

, info.plist . , , .

, , . , , .

0

Source: https://habr.com/ru/post/1014983/


All Articles