双击以分析推送通知教程时,.mobileprovision文件未添加到KeyChain访问中 [英] .mobileprovision File Is not added to KeyChain Access When Double Clicked for Parse Push Notification Tutorial

查看:316
本文介绍了双击以分析推送通知教程时,.mobileprovision文件未添加到KeyChain访问中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用下面的链接在Parse上设置了推送通知:

I have used the link below to set up push notifications on Parse:

https://github.com/ParsePlatform/PushTutorial/tree/master/iOS

这篇文章给用户带来了类似的问题:解析推送通知iOS .

I'm having a similar problem to the user from this post: Parse Push Notification iOS.

基本上,我设置了推送通知,它们似乎正在起作用.但是,我无法将PFInstallation对象写入Core数据库,但是只要将设备令牌设置为手机的设备令牌,我就可以接收推送通知.为了尝试调试问题,我在Parse上删除了我的应用程序,并删除了所有证书并重新进行了该过程,现在我的测试设备甚至没有出现在Core安装对象中.我之前写了一个问题(解析推送通知测试PFInstallation不起作用)但尚未获得有关如何将PFInstallation对象上载到Parse中的Core Installation数据库的答案.

Basically, I set up push notifications and they seemed to be working. However, I couldn't write PFInstallation objects into the Core database, but I could receive push notifications as long as the device token was set to my phone's device token. To try and debug the problem I deleted my app on Parse and I deleted all my certificates and redid the process, and now my test device doesn't even appear in my Core installation objects. I wrote a question earlier (Parse Push Notifications Testing PFInstallation Not Working) but have not gotten an answer to how to upload PFInstallation objects to the Core Installation database in Parse.

我发现一个可能的解决方案出现在此问题中:在iPhone中解析推送通知

One possible solution I found appears in this question: Parse push notification in iphone

基本上,它表示要确保使用移动供应配置文件.

Basically, it says to make sure to use the mobile provisioning profile.

在解析iOS推送"教程的第2部分,第10步中说:

In the Parse iOS push tutorial, section 2, step 10 says:

通过双击下载的文件将配置文件添加到您的登录"钥匙串中."

"Add the profile to your "login" keychain by double-clicking on the downloaded file."

但是,当我双击.mobileprovision文件时,什么也没有发生.好像有什么东西要打开一样,有一刹那,但最终没有打开.我在钥匙串访问"中检查了登录"钥匙串,但未添加任何内容.该文件的打开方式"的默认值为xCode 7.2.我试图用钥匙串访问"打开它,但是对于.mobileprovision文件来说是不可能的.

However, when I double click on the .mobileprovision file, nothing happens. There's a flash as if something is going to open, but nothing ends up opening. I check the "login" keychain in Keychain Access, and nothing has been added. The default for "Open with" for the file is xCode 7.2. I've tried to open it with Keychain Access, but that's impossible to do for a .mobileprovision file.

有什么建议吗?

更新

Update

在Build设置下,有一个"Provisioning Profile"选项卡设置为自动.我在本教程的第2部分第10步中创建的配置文件在该选项卡中显示为一个选项,但是当我将其设置为该配置文件并尝试运行代码时,出现以下错误:

Under Build settings, there's a "Provisioning Profile" tab that's set to automatic. The provisioning profile that I created in section 2, step 10 of the tutorial appears as an option in this tab, but when I set it to this provisioning profile and try to run the code, I get the error below:

您的构建设置使用UUID(我的UUID)"指定了一个配置文件,但是,找不到这样的配置文件."

"Your build settings specify a provisioning profile with the UUID "(my UUID)", however, no such provisioning profile was found."

推荐答案

我终于解决了.我必须在我的应用程序和目标中都进行设置,然后将"Provisioning Profiles"更改为.mobileprovision文件.

I finally solved it. I had to go to build settings in both my app and my target and change "Provisioning Profiles" to the .mobileprovision file.

这样做之后,我收到了错误消息: 您的构建设置使用UUID(我的UUID)"指定了一个供应配置文件,但是,找不到这样的供应配置文件."

After doing this, I got the error message: "Your build settings specify a provisioning profile with the UUID "(my UUID)", however, no such provisioning profile was found."

但是没有错.我要做的就是退出Xcode并重新启动应用程序,如这篇帖子中的答案之一所示:

But nothing was wrong. All I had to do was quit Xcode and restart the app, as was suggested in one of the answers on this post: Xcode 5: "No such provisioning profile was found ..." error

这篇关于双击以分析推送通知教程时,.mobileprovision文件未添加到KeyChain访问中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆