-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: PhaseScriptExecution error on the iOS flavor with extra target+scheme+configuration within firebase.json
#293
Comments
is step 5 copy-paste from Please explain further exactly what you're doing as it isn't clear to me. |
@russellwheatley I don't do anything with |
Did you configure the additional target? If you create a new target, you would need to also run |
@russellwheatley I've just tried to configure by command
It's adding the firebase_options.dart, but it doesn't create the Build Phase |
If you want to create a reproduction repo containing a stripped out version of your app, I can take a look. I can't really solve your issue without it as I have no idea why it isn't creating the script in your build phases. |
Hi @russellwheatley! |
Is there an existing issue for this?
CLI Version
1.0.0
Firebase Tools version
13.0.2
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.3.1 23D60 darwin-arm64, locale en-GB)
• Flutter version 3.19.5 on channel stable at /Users/heknt/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (6 weeks ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/user/Library/Android/sdk
• Platform android-34, build-tools 32.0.0
• ANDROID_HOME = /Users/user/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/user/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• 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 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.88.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• iPhone 15 Pro (mobile) • E5311B6B-0257-41C7-B107-471670430AD5 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.3.1 23D60 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.69
[✓] Network resources
• All expected network resources are available.
• No issues found!
Description
I try to run flutter with a FlutterFire build phase on a flavor with a different iOS target. There is an error:
BTW, on Runner target everything works fine. Also, w/o FlutterFire build phase it works fine on custom iOS target also.
Steps to reproduce
flutterfire configure
for iOS, which setups config files, autocreates build phaseflutter run
works fineRunner
target. It will beRunner copy
target 'Runner' do .... end
for the newRunner copy
Debug
, set the name toDebug-Runner copy
flutter run --flavor "Runner copy"
gives an errorPhaseScriptExecution
Runner copy
flutter run --flavor "Runner copy"
works fineExpected behavior
flutter run --flavor "Runner copy"
works fine within the FlutterFire build phaseScreenshots
No response
Additional context and comments
I need the extra target for integration testing. So currently I was needed to return the old firebase jsons:
firebase_app_id_file.json
, and the old crashlytics build phase, just for that target.The text was updated successfully, but these errors were encountered: