Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform

Tags:

ios

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.

like image 609
Young Techy Avatar asked Jul 26 '15 01:07

Young Techy


2 Answers

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).

enter image description here

like image 71
karim Avatar answered Nov 19 '22 12:11

karim


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.

marked in screenshot

like image 4
Arun Kumar P Avatar answered Nov 19 '22 13:11

Arun Kumar P