I have a project that uses Parse. The parse framework and the other required frameworks are included. This is a pic of the errors I'm getting http://i.stack.imgur.com/FJLd8.png In didfinishLaunchingWithOptions in my app delegate I set up my applicationId and clientKey by doing this:
Parse.setApplicationId("QuU0D74lukFBkO2Dmg4VN4zkoKiWDjxAjilcIP38",
clientKey: "vLK6KmpxnM9bPpj5QaqxoqAmW1JIxTYbidxhx2Sp")
After that was setup I created an Object to test it. Here is how I did it.
var testObject = PFObject(className:"TestObject")
testObject["foo"] = "bar"
testObject.save()
testObject.saveInBackground
does not work because it says "PFObject does not have a member named saveInBackground" so I just did testObject.save
I have also tried this:
var score = PFObject(className: "score")
score.setObject("Alex", forKey: "name")
score.setObject(95, forKey: "number")
score.save()
This also brings up 26 error:
var testObject = PFObject(className:"TestObject")
testObject["foo"] = "bar"
testObject["Alex"] = "name"
testObject.save()
You need to link with the frameworks and libraries described in the quickstart .
Click the + button in the bottom left of the 'Link Binary With Libraries' section and add the following libraries:
- AudioToolbox.framework
- CFNetwork.framework
- CoreGraphics.framework
- CoreLocation.framework
- MobileCoreServices.framework
- QuartzCore.framework
- Security.framework
- StoreKit.framework
- SystemConfiguration.framework
- libz.dylib
- libsqlite3.dylib
You also need to link Bolts.framework
which should have been included with the framework download.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.