Parse platform PFA安装应用程序首次发布问题

Parse platform PFA安装应用程序首次发布问题,parse-platform,launch,relation,pfrelation,Parse Platform,Launch,Relation,Pfrelation,我有一个严重的bug,它只发生在我的应用程序的第一次安装/启动时 情况是这样的:我的PFInstallation对象上有一个一对多的关系,我使用与此关系关联的查询来获取所有“用户”对象。 这就像我的应用程序第二次发布时的魅力一样 在第一次发布时,我遇到了这个bug,我不知道如何调试它 这是我的查询代码: 编辑:我已经更新了这篇文章,所以你可以看到完整的PFInstallation+PFRelation+PFQuery异步流 // Store the deviceToken in the curr

我有一个严重的bug,它只发生在我的应用程序的第一次安装/启动时

情况是这样的:我的PFInstallation对象上有一个一对多的关系,我使用与此关系关联的查询来获取所有“用户”对象。 这就像我的应用程序第二次发布时的魅力一样

在第一次发布时,我遇到了这个bug,我不知道如何调试它

这是我的查询代码: 编辑:我已经更新了这篇文章,所以你可以看到完整的PFInstallation+PFRelation+PFQuery异步流

// Store the deviceToken in the current installation and save it to Parse.
    PFInstallation *currentInstallation = [PFInstallation currentInstallation];
    [currentInstallation setDeviceTokenFromData:devToken];
    [currentInstallation setValue:deviceName forKey:@"deviceName"];
    [currentInstallation setValue:deviceModel forKey:@"deviceModel"];

    NSTimeZone *timeZone = [NSTimeZone localTimeZone];
    NSString *tzName = timeZone.name;
    NSNumber *secondsFromGMT = [NSNumber numberWithInteger:timeZone.secondsFromGMT];

    [currentInstallation setValue:tzName forKey:@"timeZoneName"];
    [currentInstallation setValue:secondsFromGMT forKey:@"secondsFromGMT"];

    [currentInstallation saveInBackgroundWithBlock:^(BOOL succeed, NSError *error){

        NSLog(@"Save installation: %s - error %@",succeed? "YES":"NO",error);

        if (succeed && !error) {

            if ([PFInstallation currentInstallation].objectId != nil){

                PFQuery *query = [PFQuery queryWithClassName:@"Event"];

                PFRelation *myEvents = [[PFInstallation currentInstallation]relationForKey:@"events"];

                NSLog(@"Pf installation: %@ \nRelation: %@",[PFInstallation currentInstallation],myEvents.query);

                query = myEvents.query;
                query.cachePolicy = kPFCachePolicyCacheThenNetwork;

                [query includeKey:@"Obs"];
                [query includeKey:@"Category"];
                [query orderByDescending:@"DateIni"];

                [query setLimit:100];

                [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
正如你所看到的,我已经检查了PFA安装是否保存

调试器卡在第行:

0x1000b0e14:  adrp   x8, #1904640
在线程上,一个被卡在进程上[PFQuery markAsRunning]

如果我继续运行我的应用程序,它不会崩溃,如果我重做查询,我将永远得到相同的错误,它不会停止

我关闭应用程序并重新启动。。。每件事都很有魅力

我知道这有点像PFInstallation本地保存错误,但是我在第一次发布应用程序和其他应用程序时得到了相同的PFInstallation日志。。PFS安装似乎已正确保存

可能是线程问题

以前有人经历过类似的错误吗