Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap

前端 未结 2 1450
一生所求
一生所求 2021-02-09 10:03

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 loo

2条回答
  •  隐瞒了意图╮
    2021-02-09 10:31

    I was seeing this same issue and found that changing the order of this initialization sequence (I am using swift) got me past it (notably commenting out the local data store also unblocks it):

    This gets caught in semaphore_wait_trap:

    // Parse integration initialization
    Parse.enableLocalDatastore()
    Parse.setApplicationId("", clientKey: "")
    PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
    PFFacebookUtils.initializeFacebook()
    

    This does not:

    // Parse integration initialization
    Parse.enableLocalDatastore()
    Parse.setApplicationId("", clientKey: "")
    PFFacebookUtils.initializeFacebook()
    PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
    

    Not sure of the underlying issue but hope it helps.

提交回复
热议问题