我运行离子cordova build ios,响应曾经是一个错误
请帮助我
** BUILD FAILED **
The following build commands failed:
CompileXIB MyApp/Classes/MainViewController.xib
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/linuxplus/Public/Teste/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/linuxplus/Public/Teste/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/linuxplus/Public/Teste/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)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
答案 0 :(得分:1)
我相信这必须出现在Xcode 10.x中。在这种情况下,这是因为构建系统已在Xcode 10.x中进行了更改。
尝试使用以下命令:
内部版本:ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
运行:ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0" --livereload
参考:https://github.com/apache/cordova-ios/issues/407#issue-360392411
希望这会有所帮助。