本文介绍了在[PFInternalUtils installationId]上解析Objective C库崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Parse.com运行最新的iOS Objective C SDK,版本1.4.2我在使用以下回溯的全新安装时经常崩溃.它发生在模拟器,调试设备以及应用程序的发布/生产版本中.

I'm running the latest iOS Objective C SDK from Parse.com, version 1.4.2I am getting frequent crashes on a fresh install with the following backtrace. It happens in the simulator, on my debug device, and in the release/production version of my app.

Thread 2 Crashed:
1   libobjc.A.dylib objc_msgSend + 6
2   Foundation  -[NSString getExternalRepresentation:extendedAttributes:forWritingToURLOrPath:usingEncoding:error:] + 312
3   Foundation  writeStringToURLOrPath + 44
4   Foundation  -[NSString writeToFile:atomically:encoding:error:] + 22
5   Aftermath   +[PFInternalUtils installationId] (PFInternalUtils.m:308)
6   Aftermath   +[PFNetworkCommandRunner createRequest:] (PFNetworkCommandRunner.m:62)
7   Aftermath   +[PFNetworkCommandRunner runCommandAsync:inOperation:] (PFNetworkCommandRunner.m:133)
8   Aftermath   +[PFRetryingCommandRunner runCommandAsync:inOperation:attemptsMade:delay:] (PFRetryingCommandRunner.m:42)
9   Aftermath   +[PFRetryingCommandRunner runCommandAsync:inOperation:] (PFRetryingCommandRunner.m:35)
10  Aftermath   +[PFCachedCommandRunner runCommandAsync:inOperation:cachePolicy:maxCacheAge:] (PFCachedCommandRunner.m:83)
11  Aftermath   __64-[PFQuery findAsyncWithCachePolicy:conditions:limit:skip:after:]_block_invoke (PFQuery.m:1292)
12  Aftermath   __48-[BFTask continueWithExecutor:withSuccessBlock:]_block_invoke (BFTask.m:335)
13  Aftermath   __41-[BFTask continueWithExecutor:withBlock:]_block_invoke_2 (BFTask.m:287)

推荐答案

显然,SDK 1.4.2中存在一个错误.当前版本(在编写此答案时)为1.7.5,此问题已解决.

Apparently, there was a bug in SDK 1.4.2 back in the day.The current version (at the time of writing this answer) is 1.7.5, which has this problem fixed.

您可以通过从 https://parse.com/docs/downloads或通过Cocoapods: https://cocoapods.org/pods/Parse

You can update the SDK by downloading the package from https://parse.com/docs/downloadsor via Cocoapods: https://cocoapods.org/pods/Parse

这篇关于在[PFInternalUtils installationId]上解析Objective C库崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 03:26