parse.com - Parse saveInBackgroundWithBlock crashes on iOS -
i adding data parse class (table) successfully.
after saving completed (i can see data on website), app crashes without leaving message on console. tried message using "enable zombie objects" setting. message getting has nothing doing:
-[uiactivityindicatorview release]: message sent deallocated instance 0x126d16780
i not have uiactivityindicatorview
in whole project.
this how save data:
var currentuser = pfuser.currentuser()! var usercase = pfobject(classname: "case") usercase.relationforkey("user").addobject(currentuser) usercase["casecode"] = "test_code" usercase.saveinbackgroundwithblock { (success: bool, error: nserror?) -> void in if (success) { // object has been saved. println("saved") } else { // there problem, check error.description println("error occurred: \(error?.description)") } }
swift sdk version: 1.7.5 xcode version: 6.4
has have ever faced such problem?
update: error not occur on simulator (tested on iphone 5, iphone 5s, iphone 6) , not occur on device @ first run.
tried removing , re-installing app.
update 2: removing pffacebookutils.initializefacebookwithapplicationlaunchoptions(launchoptions)
or changing pffacebookutils.initialize()
appdelegate fixes issue think need use initializefacebookwithapplicationlaunchoptions(launchoptions)
. have problem now.
you may following.
1) go pffacebookutils.h 2) change: (void)initializefacebookwithapplicationlaunchoptions:(nsdictionary *)launchoptions; to: (void)initializefacebookwithapplicationlaunchoptions:(pf_nullable nsdictionary *)launchoptions;
it posted here
Comments
Post a Comment