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

Take Maps API key out version control and get a new key #1

Closed
nickmeinhold opened this issue Oct 3, 2019 · 1 comment
Closed

Take Maps API key out version control and get a new key #1

nickmeinhold opened this issue Oct 3, 2019 · 1 comment

Comments

@nickmeinhold
Copy link
Owner

nickmeinhold commented Oct 3, 2019

eg. https://medium.com/ios-os-x-development/keeping-secrets-out-of-git-in-your-ios-app-c01a357e824b

  • the first solution is not that secure but the 2nd solution is (possibly) more secure but still insecure

Let's go with the first option but restrict the key as much as possible
https://developers.google.com/maps/documentation/ios-sdk/get-api-key#restrict_key

@nickmeinhold
Copy link
Owner Author

nickmeinhold commented Oct 4, 2019

I found a much better option: cocoapods-keys

However after following the instructions I was getting the following on pod install:

Error loading the plugin `cocoapods-keys-2.1.0`.
SystemExit - ERROR: Can't find header dir for ruby. Exiting...

I tried updating Ruby as described here but for me the problem was still there.

According to this comment the cause is that Xcode 11 ships the macOS 10.15 SDK which includes headers for ruby2.6, but not for macOS 10.14's ruby2.3. I followed the instructions there and it worked.

Specifically:

SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/
export SDKROOT

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