Skip to content

Instantly share code, notes, and snippets.

@fearoffish
Created March 21, 2013 19:23
Show Gist options
  • Save fearoffish/5215875 to your computer and use it in GitHub Desktop.
Save fearoffish/5215875 to your computer and use it in GitHub Desktop.
Using the Sphero iOS SDK with RubyMotion
# 1 Copy the .framework files to your vendor folder e.g. vendor/RobotUIKit.framework
# 2 Copy the .bundle file to your resources folder e.g. resources/RobotUIKit.bundle
# 3 Add this to your Rakefile
app.libs << "-lstdc++ -all_load -ObjC -lsqlite3"
app.frameworks << 'ExternalAccessory'
app.frameworks << 'CoreMotion'
app.vendor_project('vendor/RobotUIKit.framework', :static,
:products => ['RobotUIKit'],
:headers_dir => 'Headers')
app.vendor_project('vendor/RobotKit.framework', :static,
:products => ['RobotKit'],
:headers_dir => 'Headers')
app.info_plist['UISupportedExternalAccessoryProtocols'] = ['com.orbotix.robotprotocol']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment