Code Monkey home page Code Monkey logo

Comments (5)

TarekkMA avatar TarekkMA commented on August 22, 2024 1

@tpkowastaken Can you open this issue again in https://github.com/invertase/flutterfire_cli

from flutterfire.

tpkowastaken avatar tpkowastaken commented on August 22, 2024

The fix is to simply Click the allow install builds only in xcode for the FlutterFire: "flutterfire upload-crashlytics-symbols" build step. Please add that to the flutterfire cli
image

edit: this only moves the problem to the release build state.

A temporary workaround is to use the legacy script:

"$PODS_ROOT/FirebaseCrashlytics/upload-symbols" --flutter-project "$PROJECT_DIR/firebase_app_id_file.json" 

and add input files:

"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/"
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist"
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)"
"$(PROJECT_DIR)/firebase_app_id_file.json"

and check the For install build only

It should now look like this:
image

Now you need to create the firebase_app_id_file.json in the macos/firebase_app_id_file.json:

{
  "file_generated_by": "FlutterFire CLI",
  "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
  "GOOGLE_APP_ID": "[ios project id]",
  "FIREBASE_PROJECT_ID": "app-elevate-core",
  "GCM_SENDER_ID": "[GCM sender id]"
}

*You can find the values in [] in your GoogleService-Info.plist

PS: this is just a temporary workaround. Everytime you run flutterfire configure this gets reset. My way of keeping the changes is reverting macos/Runner.xcodeproj/project.pbxproj file back using git every time i run flutterfire configure.

Edit: I just tried it again and even this doesn't work. I still can't figure out why. I'm going to leave this to maintainers of flutterfire cli

from flutterfire.

TarekkMA avatar TarekkMA commented on August 22, 2024

@tpkowastaken Thank you for reporting this issue, and I'm glad that you found a solution for it. I've informed the team about updating the CLI docs to avoid any issues in the future.

from flutterfire.

tpkowastaken avatar tpkowastaken commented on August 22, 2024

@TarekkMA
Thank you for your answer I appreciate the quick response.
Hovewer shouldn't you forward it to the dev team instead? It shouldn't take too long to fix this. I believe it's just a simple edit of the Runner.xcworkspace that the flutterfire cli is already editing to put the bugged task in there already.
I wish you luck with resolving the issue internally and thank you for your effort.

from flutterfire.

tpkowastaken avatar tpkowastaken commented on August 22, 2024

My bad I haven't tested releasing the app yet. The script crashes even after that change when you try to release it. There is hovewer an issue already created - invertase/flutterfire_cli#314. I'm going to move the conversation there.

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.