命令的错误代码65:xcodebuild 如何解决?

Jul*_*lva 3 build ios cordova ionic-framework

我运行 ionic 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.
Run Code Online (Sandbox Code Playgroud)

Mru*_*nal 7

我相信这一定出现在 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

希望这可以帮助。