xcode 目标指定产品类型“com.apple.product-type.bundle.ui-testing”,但“iphonesimulator”平台没有这样的产品类型
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31465852/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
target specifies product type 'com.apple.product-type.bundle.ui-testing', but there's no such product type for the 'iphonesimulator' platform
提问by Jadekin
When i was running my swift project, I got this error.
当我运行我的 swift 项目时,我收到了这个错误。
target specifies product type 'com.apple.product-type.bundle.ui-testing', but there's no such product type for the 'iphonesimulator' platform
目标指定产品类型“ com.apple.product-type.bundle.ui-testing”,但“iphonesimulator”平台没有这样的产品类型
I found some similar questions on SO but thisanswer didn't solve my problem. I googledit too, there are no project with this product type inside.
我在 SO 上发现了一些类似的问题,但这个答案并没有解决我的问题。我也用谷歌搜索过,里面没有这个产品类型的项目。
I'm using xcode 6.4 and swift 1.2
我正在使用 xcode 6.4 和 swift 1.2
回答by Meriw
I had this issue after adding a product for UI testing using Xcode 7 Beta and constantly switching between Xcode 6.4 and 7 Beta. A simple cleanmade it go away.
在使用 Xcode 7 Beta 添加用于 UI 测试的产品并在 Xcode 6.4 和 7 Beta 之间不断切换后,我遇到了这个问题。一个简单的清洁使它消失。
回答by Nix Wang
In my case, clean did not work.
就我而言,干净不起作用。
Open AppName.xcodeproj/project.pbxproj
, replace allcom.apple.product-type.*
(there are 3 of them) with com.apple.product-type.application
solved my problem.
打开AppName.xcodeproj/project.pbxproj
,替换所有com.apple.product-type.*
(其中有 3 个)以com.apple.product-type.application
解决我的问题。
It seems apple changed the type name in Xcode 7.
似乎苹果在 Xcode 7 中更改了类型名称。