6
votes

When i was running my swift project, I got this error.

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

I found some similar questions on SO but this answer didn't solve my problem. I googled it too, there are no project with this product type inside.

I'm using xcode 6.4 and swift 1.2

2

2 Answers

12
votes

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 clean made it go away.

6
votes

In my case, clean 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.

It seems apple changed the type name in Xcode 7.