Search code examples
iosfacebookrubymotion

Does RubyMotion work well with facebook-ios-sdk?


Before purchase RubyMotion, I'd like to know does it support 3rd party SDKs, e.g.: facebook-ios-sdk?


Solution

  • While I haven't tested thoroughly, and can't speak for all SDKs/libraries, I can confirm that this specific SDK compiles and works in a RubyMotion project. You just need to follow the CocoaPods instructions on the RubyMotion site, and add the following to your Rakefile:

    require 'motion-cocoapods'
    
    # In the setup block, add this:
    app.pods do
      dependency 'Facebook-iOS-SDK'
    end
    

    Then when you run rake, support will be compiled in.