flutter_flavorizr icon indicating copy to clipboard operation
flutter_flavorizr copied to clipboard

Firebase config phase script wrong

Open Klabauterman opened this issue 1 year ago • 2 comments

When you use the firebase: and config: parameters to give a flavor its own GoogleService-Info.plist, a phase script gets created for the ios project. Unfortunatly the created phase script does not have an output file defined, so the build fails if there is no file prior to the build. It should define have this in Output files: $(SRCROOT)/Runner/GoogleService-Info.plist

Klabauterman avatar Feb 28 '23 12:02 Klabauterman

Hey @Klabauterman I'm sorry but I don't understand what's the problem. Can you please elaborate?

AngeloAvv avatar Jun 02 '23 17:06 AngeloAvv

I had the same issue. Building on the local machine works fine, but building on CI/CD pipeline fails.

▸ Copying GoogleService-Info.plist

❌  error: Build input file cannot be found: '/Users/runner/work/<project_name>/<project_name>/ios/Runner/GoogleService-Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'Runner' from project 'Runner')

I have modified the default script and added Input and Output Files to get it to work.

image

I hope flavorizr script adds Input and Output files for the iOS Build Phases script. @AngeloAvv

jaeyongjaykim avatar Aug 04 '23 05:08 jaeyongjaykim

It's not setting the output on add_firebase_build_phase.rb script. I've opened the #248 that fixes this

vinifig avatar Mar 15 '24 14:03 vinifig