Ios 解析目标C库在[PFInternalUtils installationId]上崩溃
我正在Parse.com上运行最新的iOS Objective C SDK,版本为1.4.2 我在一个新的安装上经常遇到以下问题。它发生在模拟器、调试设备和应用程序的发布/生产版本中Ios 解析目标C库在[PFInternalUtils installationId]上崩溃,ios,objective-c,iphone,parse-platform,Ios,Objective C,Iphone,Parse Platform,我正在Parse.com上运行最新的iOS Objective C SDK,版本为1.4.2 我在一个新的安装上经常遇到以下问题。它发生在模拟器、调试设备和应用程序的发布/生产版本中 Thread 2 Crashed: 1 libobjc.A.dylib objc_msgSend + 6 2 Foundation -[NSString getExternalRepresentation:extendedAttributes:forWritingToURLOrPath:usingEnco
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在当时存在一个bug。 当前版本(在撰写此答案时)为1.7.5,已修复此问题 您可以通过从下载软件包来更新SDK
或者通过Cocoapods:我遇到了类似的错误。使用NSZombieEnabled,我将问题追溯到UIFont上的一个自定义类别。但仍在调试。你发现你的项目出了什么问题了吗?没有,还没有发现我的问题——你应该向解析团队提出正式的支持请求,让他们知道我不是唯一的一个:。我甚至没有使用UIKit:我的游戏是一个OpenGL游戏,所以它肯定与此无关,但也许你的UIFont类别有什么问题,比如线程操作,它出了问题?我想我的问题是NSString对象在释放后收到一条消息,但我可能要到感恩节之后才会进一步调查这件事。您是否在运行应用程序时启用了NSZombie以尝试跟踪问题?此外,我的类似崩溃是如此罕见,我有困难再现它一贯。我看到你的情况非常频繁,我的应用程序中的所有用户都很频繁,但只有我一个人很难复制。我尝试过僵尸,但当它们被启用时,当然似乎无法得到复制=/你能跟踪崩溃到特定的代码段吗?如果是的话,你能把它贴出来吗?