Could not determine bundle identifier for xxxTest TEST_HOST

前端 未结 3 2126
庸人自扰
庸人自扰 2021-02-08 14:33

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

3条回答
  •  独厮守ぢ
    2021-02-08 15:09

    In my app I found a solution.

    The problem was of course in the test target.

    I hope that this solution will work for you too. Go to your test target build settings.

    Search for test host.

    In my case this testHost was looking like

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

    Which is wrong as the actual path must be

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

    so if you have a build configuration called Alpha, in your app named MyApp, with a scheme called MyApp-Alpha the test host path should be

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

    it was

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

    I hope this can help... unfortunately this issue appears in many cases.

提交回复
热议问题