测试在xcode 8 TEST_HOST错误下停止工作 [英] Tests stop working under xcode 8 TEST_HOST error

查看:333
本文介绍了测试在xcode 8 TEST_HOST错误下停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Xcode 8下开始测试,但一开始就失败了。我的错误是:

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


无法确定MyProjectTest的TEST_HOST的包标识符:
/ Users / jakubmazur / Library / Developer / Xcode /DerivedData/MyProject-ejeepybggxvekxajlyngopeahiex/Build/Intermediates/CodeCoverage/Products/Testing-iphonesimulator/MyProject.app

Could not determine bundle identifier for MyProjectTest's TEST_HOST: "/Users/jakubmazur/Library/Developer/Xcode/DerivedData/MyProject-ejeepybggxvekxajlyngopeahiex/Build/Intermediates/CodeCoverage/Products/Testing-iphonesimulator/MyProject.app"

知道什么是错的这里?我试着清理项目 - 没什么。
打包中我的目标中的构建设置我更改产​​品包标识符取决于我的架构中的配置。它可能与此有关,但不确定。

Any idea what's wrong here? I try to clean project - nothing. In the Build Settings in my target in Packaging i change Product Bundle Identifier depends on configuration in my schema. It can have something to do with that, but not sure.

- 编辑

好的如何如何缩小问题。当我更改方案中的设置以使用构建配置调试而不是测试似乎工作,但我需要单独配置测试。

Ok figure how to narrow the problem. When i change settings in scheme to use Build Configuration Debug instead of Testing seems to work, but I need separate configuration for testing.

推荐答案

好了解一下。命名包有问题。不幸的是,Xcode存在一些问题。我正在为不同的配置使用不同的模块名称。所以转到项目 - > 构建设置 - > 产品模块名称更改所有配置中相同名称的名称,不含空格。

Ok figure it out. There is a problem with naming packages. Unfortunatelly there is some issue with Xcode. I was using different Module Names for different Configurations. So go to Project -> Build Settings -> Product Module Name Change name in all configurations for same name without spaces.

这篇关于测试在xcode 8 TEST_HOST错误下停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆