this error pops up when I try to run my project
target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform
I don't know what to do please help.
In my case, most of the things were ok when I add watchkit extension with xcode 7. but debug target of the extension was iOS. So when I run in debug/simulator I got this error. I have to change them to WatchOS. and Solved.
Select Project > Targets > Supported Platform > Debug > watchOS
(I had iOS here).
Select watch targets,Then change tab to Build settings (Please make sure you selected all build settings, marked in screenshot). Then change supported platforms to WatchOS. and Solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With