Target indicates the product type is "com.apple.product-type.bundle.ui-testing", but there is no such product type for the iphonesimulator platform

When I ran my quick project, I got this error.

target indicates the product type is ' com.apple.product-type.bundle.ui-testing ', but there is no such product type for the iphonesimulator platform

I found several similar questions on SO, but this answer did not help solve my problem. I googled , also there is no project with this type of product inside.

I am using xcode 6.4 and swift 1.2

+5
source share
2 answers

I had this problem after adding a product to test the user interface using Xcode 7 Beta and constantly switching between Xcode 6.4 and 7 Beta. A simple clean made him leave.

+10
source

In my case, clean work did not work.

Open AppName.xcodeproj/project.pbxproj , replace all com.apple.product-type.* (There are 3 of them) with com.apple.product-type.application solved my problem.

Apple seems to have changed the type name in Xcode 7.

+4
source

All Articles