The following build commands failed: PhaseScriptExecution [CP-User]\ Run\ Flutter\ Build\ Script .../Script-C3A097A8FE12FF5F875B057C.sh flutter build ios --release then re-run Archive from Xcode. Command PhaseScriptExecution failed with a nonzero exit code
定位错误
Shell
1 2 3 4 5 6 7 8 9 10 11 12
# Archive builds (ACTION=install) should always run in release mode. if [[ "$ACTION" == "install" && "$build_mode" != "release" ]]; then EchoError "========================================================================" EchoError "ERROR: Flutter archive builds must be run in Release mode." EchoError "" EchoError "To correct, ensure FLUTTER_BUILD_MODE is set to release or run:" EchoError "flutter build ios --release" EchoError "" EchoError "then re-run Archive from Xcode." EchoError "========================================================================" exit -1 fi