最近我尝试为我们的混合Ionic应用程序制作watchOS应用程序。我们在Xcode中添加了Apple Watch Plugin,watchOS目标和扩展,确保支持的平台设置为“watchOS”,然后继续编辑应用程序并尝试构建。但是现在,Ionic build iOS
命令失败并显示以下消息:
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's 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
(我编辑了用户名和应用名称)
从Xcode中删除watchOS和扩展程序使其再次运行。
我该如何解决?