xcode 配置文件地狱

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3742599/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:45:49  来源:igfitidea点击:

provisioning profile hell

iphonexcodeios4

提问by Ben Collins

once in a while I run across a problem with provisioning a device with a dev version of an app . The error message is usually "a valid provisioning profile for this executable was not found".

偶尔我会遇到使用开发版应用程序配置设备的问题。错误消息通常是“找不到此可执行文件的有效配置文件”。

I have followed all the Apple instructions: I have a valid dev certificate, the developer provisioning profile includes the device ID of the device in question, codesigning works during build. I have the signing identity set for my developer identity, which Xcode matches up with the development provisioning profile just like it should.

我已遵循 Apple 的所有说明:我有一个有效的开发证书,开发人员配置文件包含相关设备的设备 ID,代码签名在构建期间有效。我为我的开发人员身份设置了签名身份,Xcode 与开发配置文件匹配,就像它应该的那样。

Then, when I try to install the app on the device by doing a 'build/run' in xcode, I get the error described above, and I'm at a total loss. It works just fine on any number of other devices, but for some reason, there are a few devices for which this process bombs.

然后,当我尝试通过在 xcode 中执行“构建/运行”在设备上安装该应用程序时,出现上述错误,我完全不知所措。它在任何数量的其他设备上都可以正常工作,但出于某种原因,此过程会导致一些设备爆炸。

Here's the console log for the failed install on the device:

这是设备上安装失败的控制台日志:

Sat Sep 18 11:41:14 unknown SpringBoard[27] <Warning>: Reloading and rendering all application icons.
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 verify_signer_identity: Could not copy validate signature: -402620395
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.pJ8ST8/MyApp.app
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 install_application: Could not preflight application install
Sat Sep 18 11:41:36 unknown mobile_installation_proxy[855] <Error>: handle_install: Installation failed
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 handle_install: API failed
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 send_message: failed to send mach message of 64 bytes: 10000003
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 send_error: Could not send error response to client
Sat Sep 18 11:42:32 unknown MobileMail[809] <Warning>: SecItemCopyMatching result: -25300
Sat Sep 18 11:42:37 unknown MobileMail[809] <Warning>: SecItemCopyMatching result: -25300
Sat Sep 18 11:43:32 unknown CommCenter[31] <Notice>: com.apple.persistentconnection[MobileMail,809] is releasing its assertion on PDP context 0.
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 verify_signer_identity: Could not copy validate signature: -402620395
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.cgJjHu/MyApp.app
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 install_application: Could not preflight application install
Sat Sep 18 11:44:53 unknown mobile_installation_proxy[867] <Error>: handle_install: Installation failed
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 handle_install: API failed
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 send_message: failed to send mach message of 64 bytes: 10000003
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 send_error: Could not send error response to client

采纳答案by Jirapong

Team and I ran into same issue as you. It work fine with many device except the customer iPod. We try to create everything from scratch. App ID, Provision, Build. No Luck.

团队和我遇到了和你一样的问题。它适用于除客户 iPod 之外的许多设备。我们尝试从头开始创造一切。应用 ID、供应、构建。没运气。

So, after review great article at http://boga.wordpress.com/2008/07/16/debugging-ipod-provision-profilescertificates/

因此,在查看http://boga.wordpress.com/2008/07/16/debugging-ipod-provision-profilescertificates/ 上的精彩文章后

so, I use the Organize to sync provision with iTunes Connect site. then check provision file with TextEdit (Vim).

所以,我使用 Organize 与 iTunes Connect 站点同步配置。然后使用 TextEdit (Vim) 检查配置文件。

this line should be appear. After that my deploy with Adhoc success.

这条线应该出现。之后,我的 Adhoc 部署成功。

<key>Entitlements</key>
    <dict>
        <key>application-identifier</key>
        <string>H33HFFQMS8.icpsstock</string>
        <key>get-task-allow</key>
        <false/>
        <key>keychain-access-groups</key>
        <array>
            <string>H33HFFQMS8.*</string>
        </array>
    </dict>

Hope this help, my configuration looks like this.

希望这有帮助,我的配置看起来像这样。

  1. Target iOS 3.1.3
  2. Base SDK 4.2
  3. LLVM GCC 4.2 Build
  4. get-task-allow in Entitlement.plist must be false
  5. Sync Organizer's provision with iTunes Connect
  1. 目标 iOS 3.1.3
  2. 基础 SDK 4.2
  3. LLVM GCC 4.2 构建
  4. Entitlement.plist 中的 get-task-allow 必须为 false
  5. 将 Organizer 的配置与 iTunes Connect 同步

回答by tmin

You might want to try the whole provisioning process from the beginning again. Yesterday, the XCode managed "automatic" provisioning profile gave me that error when I try to test on a new iPhone. So I had to resolve to the old manual installation of provisioning profile.

您可能想从头开始尝试整个配置过程。昨天,当我尝试在新 iPhone 上进行测试时,XCode 管理的“自动”配置文件给了我这个错误。所以我不得不解决旧的手动安装配置文件。

I deleted all my profiles from both the device and the XCode. Added the new device to the provisioning profile on the iOS provisioning portal on the apple website. (I think I also closed XCode and restarted my machine.) Re-downloaded the new profile and installed to the XCode. Changed to that profile in the project setting. And it worked.

我从设备和 XCode 中删除了我的所有配置文件。将新设备添加到 Apple 网站上 iOS 配置门户的配置文件中。(我想我也关闭了 XCode 并重新启动了我的机器。)重新下载新的配置文件并安装到 XCode。在项目设置中更改为该配置文件。它奏效了。

The only thing that I didn't do was regeneration of the certificate.

我唯一没有做的就是重新生成证书。