Tests stop working under xcode 8 TEST_HOST error

前端 未结 12 867
暖寄归人
暖寄归人 2020-12-15 15:13

I want to start tests under Xcode 8 and it fail in the beginning. My error is:

Could not determine bundle identifier for MyProjectTest\'s TEST_HOST:

12条回答
  •  悲哀的现实
    2020-12-15 16:12

    What I have discovered is that the tests will not run unless you have built and run the same target you are running the tests against on the device/sim you are testing on.

    For example, if I run the tests against target Production, then I would have to build and run the target Production on the device/sim before I can run the tests. If I did not do that, it will give me the same error.

提交回复
热议问题