Parse.setApplicationId('123', clientKey:'456')
(main)>> Objective-C stub for message `setApplicationId:clientKey:' type `v@:@@' not precompiled. Make sure you properly link with the framework or library that defines this message.
testObject = PFObject.objectWithClassName('TestObject')testObject.setObject('Bar', forKey:'Foo')testObject.saveEventually
Hi,
I've added the Parse framework to my app like this:
http://stackoverflow.com/a/10453895/123048.
While most methods work correctly...
$:.unshift("/Library/RubyMotion/lib")require 'motion/project'Motion::Project::App.setup do |app|# Use `rake config' to see complete project settings.app.name = 'SG Careers'app.libs << '/usr/lib/libz.1.1.3.dylib'app.frameworks += ['AudioToolbox','CFNetwork','SystemConfiguration','MobileCoreServices','Security','QuartzCore']app.vendor_project('vendor/Parse.framework',:static,:products => ['Parse'],:headers_dir => 'Headers')app.device_family = :iphoneapp.deployment_target = '5.1'end
def application(application, didFinishLaunchingWithOptions:launchOptions)# This is where you fill in your Parse credentialsParse.setApplicationId('12345', clientKey:'67890')# Optionally if you are using Facebook, fill in with your Facebook App Id# PFFacebookUtils.initializeWithApplicationId('YourFacebookAppId')PFUser.enableAutomaticUserdefaultACL = PFACL.ACL# Optionally enable public read access by default.# defaultACL.setPublicReadAccess(true);PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser:true)# Start general application customizations here@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)@window.rootViewController = MainView.alloc.init;@window.makeKeyAndVisibleapplication.registerForRemoteNotificationTypes(UIRemoteNotificationTypeBadge ||UIRemoteNotificationTypeAlert ||UIRemoteNotificationTypeSound)return trueend
...Omitting the rest of the app_delegate file as it is mostly not interesting
ERROR! Building vendor project `vendor/Parse.framework' failed to create at least one `.a' library.
Objective-C stub for message `setDefaultACL:withAccessForCurrentUser:' type `v@:@c' not precompiled. Make sure you properly link with the framework or library that defines this message.
Objective-C stub for message `objectWithClassName:' type `@@:@' not precompiled. Make sure you properly link with the framework or library that defines this message.
testObject = PFObject.objectWithClassName('TestObject')
That fixed it for me :) Thank you very much!