amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 10 forks source link

Firebase Cocoa Pod Configuration for RubyMotion #127

Open amirrajan opened 5 years ago

amirrajan commented 5 years ago

put GoogleService-Info.plist in the resources folder of your app.

... require 'motion-cocoapods' ... Motion::Project::App.setup do |app| ... app.pods do pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/Auth' end ... app.info_plist['FirebaseAppDelegateProxyEnabled'] = false ... app.entitlements['keychain-access-groups'] = [app.seed_id + "." + app.identifier]

Work-around for what seems to be a recurring Xcode bug: SecItemAdd() fails in simulator

# (but not on device) with error code -34018. For me discovered when trying to log in to
# Firebase. See e.g. https://forums.developer.apple.com/thread/60617

end ...

amirrajan commented 5 years ago

Sample app link would be nice :-)