简体   繁体   English

XCode 8签名

[英]XCode 8 Signing

I'm trying to test Push notifications on a device, but can't get my app to install. 我正在尝试在设备上测试Push通知,但无法安装我的应用程序。

Take a look a this screen grab. 看看这个屏幕抓取。

XCode设置

I have provisioning profile attached that I've been using to successfully push to TestFlight and have used to push previous version to the App Store. 我随附了用于成功推送到TestFlight并已将先前版本推送到App Store的配置文件。 But running it on my device locally and: 但是在本地设备上运行它:

App installation failed 应用安装失败
A valid provisioning profile for this executable was not found. 找不到此可执行文件的有效配置文件。

What's going on here? 这里发生了什么?

I'm even more confused by "automatic" code signing. 我对“自动”代码签名感到更加困惑。 I turn it on, set my "Team" and: 我打开它,设置“团队”,然后:

App installation failed 应用安装失败
A valid provisioning profile for this executable was not found. 找不到此可执行文件的有效配置文件。

Even if that did work, would the push notifications certs on the server now send to the right place? 即使这样做确实可行,服务器上的推送通知证书现在是否可以发送到正确的位置?

Try go to xcode preferences, then accounts and under your apple id page, click on view details. 尝试转到xcode偏好设置,然后选择帐户,然后在您的Apple ID页面下,单击查看详细信息。

Check your signing identities if there is a reset button for your ios development. 检查您的签名身份,是否有用于iOS开发的重置按钮。 Click on the reset button if there is. 单击重置按钮(如果有)。

Also check your provisioning profiles. 还要检查您的配置文件。 Download the profile that you need if there is a download button. 如果有下载按钮,请下载所需的配置文件。

There might be multiple scenarios. 可能有多种情况。

  1. Check if your device UDID is there in the provisioning profile. 检查您的设备UDID是否在供应配置文件中。
  2. In Xcode, Goto --> Build --> clean all targets. 在Xcode中,转到->构建->清理所有目标。
  3. As you are using Distribution certificate, make sure your provisioning profile is also for distribution. 使用分发证书时,请确保您的配置文件也可以分发。
  4. Go to keychaing --> UnHide Expired Certificates --> Delete the expired certificates. 转到keychaing->取消隐藏过期的证书->删除过期的证书。
  5. Delete duplicate provisioning profile if any. 删除重复的配置文件(如果有)。

May be you can also check this SO question 可能您也可以检查此问题

App Installation Failed 应用安装失败

Might be it can help you. 可能会帮助您。 Good Luck 祝好运

Turns out my problem was pretty simple. 原来我的问题很简单。 I have two targets: MyApp and MyAppTest. 我有两个目标:MyApp和MyAppTest。 When installing on a device locally, I guess it also installs the tests, as setting that to automatically sign and selecting the team seemed to fix it. 在本地安装设备时,我猜它也会安装测试,因为设置为自动签名并选择团队似乎可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM