AngeloAvv / flutter_flavorizr

A flutter utility to easily create flavors in your flutter application
https://pub.dev/packages/flutter_flavorizr
MIT License
456 stars 81 forks source link

IOS App running issue when firebase connect to project #211

Closed ATHUL3120 closed 1 year ago

ATHUL3120 commented 1 year ago

my flavorizr.yaml file is

app:
  android:
    flavorDimensions: "flavor-type"

flavors:
  dev:
    app:
      name: "JDS"
    android:
      applicationId: "com.example.template.dev"
    ios:
      bundleId: "com.example.template"
      firebase:
        config: "firebase/GoogleService-Info.plist"
    macos:
      bundleId: "com.example.template.dev"

  prod:
    app:
      name: "JDS"

    android:
      applicationId: "com.example.template.prod"
    ios:
      bundleId: "com.example.template"
      firebase:
        config: "firebase/GoogleService-Info.plist"
    macos:
      bundleId: "com.example.template.prod"

  demo:
    app:
      name: "JDS"

    android:
      applicationId: "com.example.template.demo"
    ios:
      bundleId: "com.example.template"
      firebase:
        config: "firebase/GoogleService-Info.plist"
    macos:
      bundleId: "com.example.template.demo"

ide: idea

and i connect Firebase to the project using flutterfire configure --project=template-8ec14 and copy the GoogleService-Info.plist to firebase/GoogleService-Info.plist here. and run flutter pub run flutter_flavorizr

and run flavor with main_dev an error occurs that

Launching lib/main_dev.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
Xcode build done.                                            5.2s
Failed to build an iOS app
Error (Xcode): Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-dev-input-files.xcfilelist'

Error (Xcode): Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-dev-output-files.xcfilelist'

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
AngeloAvv commented 1 year ago

Flutterfire CLI is incompatible with flutter_flavorizr. You have to install Firebase the old way (which is still supported btw)

https://github.com/AngeloAvv/flutter_flavorizr/discussions/105

Duplicate of https://github.com/AngeloAvv/flutter_flavorizr/issues/145, https://github.com/AngeloAvv/flutter_flavorizr/issues/96, https://github.com/AngeloAvv/flutter_flavorizr/issues/17