Since updating Facebook to v4.0.x and the latest Parse libraries, my application hangs, it seems, when I try to log in.
My stack trace looks like this:

I had a very similar problem earlier, here: Collection failed when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap
However, this solution no longer works, as it seems that [PFUser currentUser] been replaced by [PFUser(Private) _getCurrentUserWithOptions:] and [BFTask(Private) waitForResult:withMainThreadWarning:] , where it gets stuck.
In my application, I subclassed PFUser to the MPLUser class and redefined the user method. Not sure if this could be due to a problem?
+ (MPLUser *)user { return (MPLUser *)[PFUser user]; }
Once this happens, it becomes impossible to launch the application. However, I usually launch the application several times before the lock starts. This usually happens after a failure ...
I use pod 'ParseFacebookUtilsV4' and updates all libraries to the latest versions.
UPDATE:
Here's more stack trace from another thread, which is apparently trying to log in:


I initialize Parse and Facebook in the following order. If I cancel the calls, it will work:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self initDefaults]; [self initialiseApplicationSpecifics]; [self setupParseWithOptions:launchOptions]; [self enableCrashReporting]; [self setupIAPs];
Smikey
source share