Authenticate to Google using OAUTH2 in your RubyMotion app.
This project integrates Google open-source iOS libraries to connect your app to the plethora of services Google offers.
- Register your application http://code.google.com/p/gtm-oauth2/wiki/Introduction#Registering_Your_Application
- Check out the source
git clone email@example.com:aceofspades/google-oauth2-motion.git
git submodule update --init
- Implement the bridgesupport fix under Known Issues
- In app/controllers/main_controller.rb, fill in your Client ID and Client Secret from the previous step
- Build and run the app
If you see
Error: invalid_client then may not have properly registered/configured your Client ID and Secret.
I have not been able to determine why this fresh build produces the following error:
Objective-C stub for message 'authForGoogleFromKeychainForName:clientID:clientSecret:' type '@@:@@@' not precompiled. Make sure you properly link with the framework or library that defines this message.
Installing a good copy of the bridge support file for the goole api addresses this:
cp Source.bridgesupport-for-google-api-objectivec-client vendor/google-api-objectivec-client/Source/Source.bridgesupport
If anyone has a solution, please file an issue.