Cannot decode GoogleService-Info in React Native iOS #1213
Replies: 3 comments 1 reply
-
Hi @thenderson55, for e.g.
|
Beta Was this translation helpful? Give feedback.
-
Thanks! That helped - however it did not work with the below code that the documents/example yaml give:
It works with the location that the error provides:
Not sure if this will create problems in the future or not. Ideally it would work with the code in the docs. |
Beta Was this translation helpful? Give feedback.
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have followed various docs and solutions.
Initially I tried the, I think outdated, Firebase iOS guide:
https://blog.codemagic.io/react-native-firebase-codemagic-for-ios/
I couldn't find the "Encrypt environment variables" anywhere on the site so I followed this guide:
https://docs.codemagic.io/yaml-basic-configuration/configuring-environment-variables/
And used
openssl base64 -in GoogleService-Info.plist
to generate the base64 string (as well as other ways which all had the same result) then added to my environment variables and into the yaml like so:It throws an error in "Build ipa for distribution":
I tried these instead but got same or similar error about cannot find:
I tried this solution by changing in Xcode but it failed:
https://stackoverflow.com/questions/63639855/codemagic-ios-build-fails-due-to-firebase-googleservice-info-plist
I saw on this flutter doc you used "Encrypted(...)" so tried that and it failed:
https://blog.codemagic.io/practical-guide-flutter-firebase-codemagic/?ref=morioh.com&utm_source=morioh.com
some build ids:
638ec976d8ec86d5f0eb4e9e
638eafd644b97200f702c43e
638ea6de44d9fb02a5b0e4fb
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions