Unable to build a watchos2 simulator app from commandline

Hi,

Facing an issue when we are trying to build an app for watchos2 simulator from terminal.

xcode version :- Version 7.3.1 (7D1014)

OS version:- 10.11.5 (15F34)


Command used :-

xcodebuild -target testwatchCMD -sdk iphonesimulator


Error:-

Build settings from command line:

SDKROOT = iphonesimulator9.3

=== BUILD TARGET testwatchCMD WatchKit Extension OF PROJECT testwatchCMD WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

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

** BUILD FAILED **

The following build commands failed:

Check dependencies

(1 failure)


Unable to understand where am i doing wrong.


Regards,

K.Prabhakar

Unable to build a watchos2 simulator app from commandline
 
 
Q