我无法在iOS平台上构建我的项目(使用js,vue.js,vuex创建)。输入npm run dev
时,同一项目确实可以在Web上运行,并且我能够在装有Windows的笔记本电脑上的Android上进行构建。当我尝试在Cordova上运行iOS时,会出现以下内容:
xcodebuild: error: Unable to find a destination matching the provided destination specifier: --HERE a lot of simulators-- Ineligible destinations for the "HelloCordova" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device } { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device } CordovaError: Promise rejected with non-error: 'Error code 70 for command: xcodebuild with args: -xcconfig,/Users/username/Downloads/vue-webpack-vuetify-vuex-cordova-boilerplate-master copy/platforms/ios/cordova/build-debug.xcconfig,-workspace,HelloCordova.xcworkspace,-scheme,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/username/Downloads/vue-webpack-vuetify-vuex-cordova-boilerplate-master copy/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/username/Downloads/vue-webpack-vuetify-vuex-cordova-boilerplate-master copy/platforms/ios/build/sharedpch' at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15) at process._tickCallback (internal/process/next_tick.js:68:7)
IV也尝试了cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
但是出现了同样的错误。我正在使用Xcode 10.1和Cordova 8.1.2
在MacBook Pro上运行的Atm