有人可以帮我解决这个问题。
我尝试将我的解析版本升级到我的代码,但结果非常烦人。 我已经从parse.com网站下载了新的SDK。并替换旧的,它仍然无法正常工作。 所以我决定删除所有框架并重新添加所有这些,结果仍然不起作用。
以下是导致错误的代码:
> let currentInstallation = PFInstallation.currentInstallation()
currentInstallation.addUniqueObject("adirax", forKey: "channels")
currentInstallation.saveInBackground()
let subscribedChannels = PFInstallation.currentInstallation().channels
和:
> // MARK: Push Notifications
func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
let installation = PFInstallation.currentInstallation()
installation.setDeviceTokenFromData(deviceToken)
installation.saveInBackground()
PFPush.subscribeToChannelInBackground("adirax") { (succeeded: Bool, error: NSError?) in
if succeeded {
print("ParseStarterProject successfully subscribed to push notifications on the broadcast channel.\n");
} else {
print("ParseStarterProject failed to subscribe to push notifications on the broadcast channel with error = %@.\n", error)
}
}
}
这是错误:
2015-12-28 22:31:38.205 Adira Calendar [538:151876] [错误]:找不到更新的对象(代码:101,版本:1.11.0)
我已经阅读了其他类似的帖子,但是解析版本不同,但这并没有帮助我解决这个问题。
添加信息
当我尝试构建应用程序时,它运行成功,但当我尝试在我的手机上突然运行时出现错误。 (上面描述错误)
解决
Not sure if this really worth to try but it works. even though it's so annoying.
I have to create a new workspace and start all over the project ( can use copy paste some file ). And i have to re-create all the certificate i have already before.
But at least this works,
If anyone know how to solve this problem fast, please tell me too.
Thanks!