pfuser

Major bug in Parse: [PFUser currentUser] deadlocks

醉酒当歌 提交于 2019-12-03 13:23:44
The issue of PFUser deadlocking from thread contention via parse background calls has been raised numerous times by the Parse community, but Parse has chosen not to deal with this giant bug in the framework. Does anyone know of a work around for this issue? Other apparent reports of this issue: https://developers.facebook.com/bugs/649920188390439/ https://www.parse.com/questions/ios-api-apparent-deadlock-in-main-thread-v1213 https://www.parse.com/questions/occasional-freezing-at-pfuser-currentuser https://www.parse.com/questions/deadlock-on-pfuser-currentuser-ios-sdk-1219 来源: https:/

Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap

邮差的信 提交于 2019-12-03 07:18:53
Since the latest Parse release (v1.6.3) my app gets stuck at launch, and the last breakpoint it hits is [PFFacebookUtils initializeFacebook]; If I hit pause and look at the debugger, the stack trace looks like this: I'm calling [PFFacebookUtils initializeFacebook] in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions as advised. From googling the semaphore_wait_trap issue, it seems to be related to clashing background threads(?) in Core Data. But I've tried commenting out all my background Parse queries and it still occurs. I tried

Swift & Parse - PFUser currentUser never equals nil

依然范特西╮ 提交于 2019-12-03 00:47:28
I am using Xcode, Swift, and Parse. When I try and logout a PFUser, i never get a return of nil. In this part of the app, the viewController is simply showing a few buttons one logs in. One sends the user to signup. One sends the user to change details, and one is a simple logout. The code for the two that matter on logout is; @IBAction func logout(sender: AnyObject) { PFUser.logOut() var currentUser = PFUser.currentUser() self.displayAlert("You are now logged out", error: "") println(currentUser!) } @IBAction func changeDetails(sender: AnyObject) { var currentUser = PFUser.currentUser()

PFUser does not have a member named subscript?

泄露秘密 提交于 2019-12-02 18:09:31
问题 I am using Parse's PFUser to create and save a user's information when they sign up but I'm getting an error "'PFUser' does not have a member named 'subscript'" at the lines where I have to set the user's firstName and zipcode. The code ran perfectly before and I haven't been able to find anything online or in my history that would explain this error. Please help! func signUp() { var user = PFUser() user.email = email.text user["firstName"] = firstName.text user["zipcode"] = zipcode.text user

PFUser does not have a member named subscript?

梦想与她 提交于 2019-12-02 07:36:01
I am using Parse's PFUser to create and save a user's information when they sign up but I'm getting an error "'PFUser' does not have a member named 'subscript'" at the lines where I have to set the user's firstName and zipcode. The code ran perfectly before and I haven't been able to find anything online or in my history that would explain this error. Please help! func signUp() { var user = PFUser() user.email = email.text user["firstName"] = firstName.text user["zipcode"] = zipcode.text user.objectId = objectId //etc... } You can use the method setValue:forKey: Example: func signUp() { var

Smart-search for Parse Usernames in Swift not working

混江龙づ霸主 提交于 2019-11-27 02:26:40
I'm trying to have a smart-search in my iOS app so that when a user types a character into a UISearchBar, the results automatically update in the tableview below the searchbar. For some reason, the searchBar function with textDidChange isn't called when I type a character into the search bar. It's called after 2 characters are typed. So my search results are always 1 step behind what's actually typed into the search bar. And it also seems like the search() function is being called twice every time. Any ideas? //FUNC: search func search(searchText: String? = nil){ if searchText == nil ||