Skip to content
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

App crashes on launch when using in GoogleService-Info.plist on iOS #805

Open
sifthedog opened this issue Jul 4, 2024 · 0 comments
Open

Comments

@sifthedog
Copy link

Hey 👋

I am trying to setup this library in a project using [email protected]. It works fine on the JavaScript file, however, when interpolating the value into GoogleService-Info.plist, the app crashes whenever I try to open it. The app works greaat when I don't interpolate.

  • GoogleService-Info.plist
...
<key>API_KEY</key>
<string>$(GOOGLE_API_KEY)</string>
...
  • .env
GOOGLE_API_KEY=api_key
  • Pre-action script:
"${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/BuildXCConfig.rb" "${SRCROOT}/.." "${SRCROOT}/tmp.xcconfig"

I see that tmp.xcconfig is generated everytime with the expected values. I also already cleaned up the build folder and tried to rebuild it.

Any additional information I may provide?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant