-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
Steps to reproduce
β Issue: Command PhaseScriptExecution failed with a nonzero exit code
π¨ Project Summary:
- Flutter project:
eds_app
- Target platform: iOS (device)
- Xcode version: 16.4 (16F6)
- CocoaPods used:
arch -x86_64 pod install --repo-update
- Using Rosetta Terminal for M4 compatibility
β Actions Taken:
flutter clean
,flutter pub get
,arch -x86_64 pod install
, andflutter build ios --no-codesign
- Rosetta terminal used throughout
- Manual changes made in Xcode (Build Phases, Embed Flutter Frameworks, Base Configuration)
- Verified existence of
Generated.xcconfig
- Verified
.xcworkspace
is being used to open in Xcode - Deleted and reinstalled Xcode from the App Store
- Cleaned Derived Data and rebuilt Pods
- Added missing scripts (e.g. Embed Flutter Frameworks)
- Re-installed Firebase and other dependencies
β οΈ Error (Final and Persistent):
Command PhaseScriptExecution failed with a nonzero exit code
/Users/evans/Documents/eds_app/build/ios/Release-iphoneos/App.framework: (l)stat: No such file or directory
π Request:
I am requesting help from GitHub and Flutter team. If needed, I am fully open to deleting the entire ios/
directory and regenerating the platform folder from scratch.
Here is my Repo https://github.com/MrTolaMan/Command-PhaseScriptExecution-failed-with-a-nonzero-exit-code
System:
- macOS on M4 MacBook Air
- Rosetta Terminal used
- Flutter stable channel
π Thank you!
Expected results
I expected my iOS app to build successfully from the command:
flutter build ios --no-codesign
Specifically, I expected: The iOS build process to complete without errors.
No "Command PhaseScriptExecution failed with a nonzero exit code" errors.
All build artifacts (like App.framework, Generated.xcconfig, and Pods-Runner-frameworks.sh) to be generated properly.
Successful pod installation and Runner.xcworkspace to build and launch from Xcode.
Visual Studio Code and Xcode to reflect a clean, working iOS build environment with no missing files or red references.
A debug or release .ipa output that can be tested on physical devices.
Actual results
I expected my iOS app to build successfully from the command:
flutter build ios --no-codesign
Specifically, I expected:
The iOS build process to complete without errors.
No "Command PhaseScriptExecution failed with a nonzero exit code" errors.
All build artifacts (like App.framework, Generated.xcconfig, and Pods-Runner-frameworks.sh) to be generated properly.
Successful pod installation and Runner.xcworkspace to build and launch from Xcode.
Visual Studio Code and Xcode to reflect a clean, working iOS build environment with no missing files or red references.
A debug or release .ipa output that can be tested on physical devices.
Code sample
Code sample
[import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(); // π₯ Triggers build issues
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Firebase Test',
home: Scaffold(
appBar: AppBar(title: const Text('Test App')),
body: const Center(child: Text('Firebase Init Test')),
),
);
}
}
pub spec
dependencies:
flutter:
sdk: flutter
firebase_core: ^3.15.1
firebase_auth: ^5.6.2
cloud_firestore: ^5.6.11
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[[β] Flutter (Channel stable, 3.32.5, on macOS 15.5 24F74 darwin-arm64 (Rosetta),
locale en-US) [1,110ms]
β’ Flutter version 3.32.5 on channel stable at
/opt/homebrew/Caskroom/flutter/3.32.5/flutter
β’ Upstream repository https://github.com/flutter/flutter.git
β’ Framework revision fcf2c11572 (2 weeks ago), 2025-06-24 11:44:07 -0700
β’ Engine revision dd93de6fb1
β’ Dart version 3.8.1
β’ DevTools version 2.45.1
[β] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[4.6s]
β’ Android SDK at /Users/evans/Library/Android/sdk
β’ Platform android-36, build-tools 36.0.0
β’ Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on
this machine.
To manually set the JDK path, use: `flutter config
--jdk-dir="path/to/jdk"`.
β’ Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 16.4) [1,394ms]
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Build 16F6
β’ CocoaPods version 1.16.2
[β] Chrome - develop for the web [8ms]
β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[β] Android Studio (version 2025.1) [8ms]
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/9212-flutter
β’ Dart plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/6351-dart
β’ Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
[β] VS Code (version 1.101.2) [7ms]
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.114.0
[β] Connected device (2 available) [32.7s]
β’ macOS (desktop) β’ macos β’ darwin-arm64 β’ macOS 15.5 24F74 darwin-arm64
(Rosetta)
β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 138.0.7204.101
[β] Network resources [605ms]
β’ All expected network resources are available.
β’ No issues found!
]