背景:几天前我决定将Facebook SDK更新为Facebook-iOS-SDK v3.24中的FBSDKCoreKit。我相应地更新了我的Podfile并安装了所有库。然后我开始更新一些代码以使用更新的SDK规范。
在工作了很短的时间之后,我改变主意并决定回滚到旧版本。我做了所有必要的cocoapods更改和安装,丢弃了Xcode中的所有本地更改,重新编译并运行。一切都很好......或者我认为。
问题:现在,当我尝试在旧的iOS7测试设备上运行时,每当应用启动时我都会收到错误消息。以下是确切的控制台输出:
2015-10-15 20:14:31.271 hiatus[184:6003] [Error]: Failed to run command eventually with
error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be
completed. (Cocoa error 3840.)" (JSON text did not start with array or object
and option to allow fragments not set.) UserInfo=0x14d67d20 {NSDebugDescription=
JSON text did not start with array or object and option to allow fragments not set.}
在控制台中显示此错误后,没有Parse功能可用。在我的情况下,这意味着用户无法登录。而是显示空错误。
在iOS8和iOS9(模拟器和真实设备)上一切正常。我正在使用Parse v1.9。我尝试过清理项目,重置等,但没有成功。
我已经能够将其追踪到PFEventuallyQueue.m中的特定功能。它似乎发生在(void)_runCommandsWithRetriesCount:
内。我只是无法知道如何解决它。
答案 0 :(得分:5)
这是SDK v1.9.0(https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/388)的已知问题。它已经修复但尚未发布(它将成为1.9.1版本的一部分)。
您有3个选项:
pod 'Parse', :git => 'https://github.com/ParsePlatform/Parse-SDK-iOS-OSX.git'
答案 1 :(得分:1)
现在可用Parse 1.9.1但我建议将CocoaPods用于任何框架:https://cocoapods.org/pods/Parse