I recently tried to make a watchOS app for our hybrid Ionic app. We added the Apple Watch plugin , the watchOS target, and the extension in Xcode, made sure that the supported platforms were installed on “watchOS”, and then went on to edit the application and try to build it. But now the command Ionic build iOSdoes not work with this message:
Check dependencies
=== BUILD TARGET MyApp Extension OF PROJECT MyApp WITH CONFIGURATION Debug ===
Check dependencies
target specifies product type 'com.apple.product-type.watchkit2-extension', but there no such product type for the 'iphonesimulator' platform
* BUILD FAILED *
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/<XXXXX>/Progetti App/myApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,myApp.xcworkspace,-scheme,myApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/<XXXXX>/Progetti App/myApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/<XXXXX>/Progetti App/myApp/platforms/ios/build/sharedpch
(I edited the username and application name)
Removing both watchOS and expanding from Xcode makes it work again.
How can I solve it?
source
share