iOS配置get

编程入门 行业动态 更新时间:2024-10-24 22:22:10
iOS配置get-task-allow AND <错误>:配置文件无效:0xe8008012(iOS provisioning get-task-allow AND : profile not valid: 0xe8008012)

我有一个我为应用程序商店构建的iPhone应用程序。 在我到达那里之前,我需要在内部进行测试。 所以本周早些时候我出去了,获得了一个配置配置文件并将其安装在我的组织周围的大约50台设备上。 没问题,一切都变得非常流畅,每个人都很开心。 所以我稍微清理了一下代码,进行了一些重构,并添加了一些修饰。 与此同时,我们在测试版中添加了更多设备(大约10个附加单元)。 因此,当我准备构建并运行第二个测试版时,我出去了,获得了一个新的配置文件,并将该版本存档为ad-hoc无线部署。 然后我在手机上测试了应用程序(也是开发设备),但无法安装。 我检查了管理器中的设备控制台,发现了如下错误: <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile 。 没关系这个事实,当我在3天前归档和部署它时,没有Entitlements plist就可以正常工作。 所以我想“好吧,只是其中一个怪癖。” 我添加了一个Entitlements.plist并将get-task-allow为YES 。 然后,我使用我的分发配置文件重新存档它,并尝试将其安装到我的设备上,并且确实正确安装。 然后我在两个独立的设备上尝试了它 - 一个在我周二成功部署它时安装了它,另一个没有。 两个人都没有工作。 它做了几乎到最后的事情然后说“安装失败”。 所以我想“好吧,它不喜欢Entitlements.plist文件。我已经读过一些东西 ,如果它在构建中有一个Entitlements.plist,那么Apple会拒绝应用程序商店的应用程序(这是真的吗?我如果我可以再次获得这个愚蠢的测试版,我想提交下周结束!)我删除文件,存档并再次部署它,我得到了同样的错误。我将其中一个设备连接到管理器的控制台,我收到一条如下所示的错误消息:

Jun 29 08:49:13 unknown installd[14394] <Error>: profile not valid: 0xe8008012 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 install_embedded_profile: Could not install embedded profile: -402620398 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 verify_signer_identity: Could not copy validate signature: -402620395 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.PHE3Kj/foo_extracted/Payload/Lenexa.app Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 install_application: Could not preflight application install Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 handle_install: API failed Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 send_message: failed to send mach message of 71 bytes: 10000003 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 send_error: Could not send error response to client

然后我查找了0xe8008012错误,我注意到有人说你应该确保在XCode中正确设置了配置文件,并确保配置文件中的UDID与你试图安装它的设备相匹配。 。

考虑到这一点,我测试通过构建针对星期二成功部署的相同配置文件来确保它不是UDID问题。 仍然没有去。

我在build-settings上更改了所有代码签名部分,如下所示:

我读到有些人在XCode中重建了这个项目。 我想避免这样做。 有人有什么想法吗? 我会很感激!

I have an iPhone app that I've built for the app store. Before I get there, I need to test it internally. So earlier this week I went out, got a distribution provisioning profile and installed it on about 50 devices around my organization. No problem, everything went super-smooth and everybody was happy. So I then cleaned up the code a bit, did some refactoring, and added a bit of polish. At the same time, we had more devices added to the beta (around 10 additional units). So when I was ready to build and run out the second beta, I went out, got a new provisioning profile and archived the build for ad-hoc over the air deployment. Then I tested the app on my phone (which is also the development device), and it failed to install. I checked the device console in Organizer and saw an error that looks like this: <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile. Never mind the fact that when I archived and deployed it just 3 days ago it worked fine without an Entitlements plist. So I thought "OK, just one of those quirks." I added an Entitlements.plist and set the get-task-allow to YES. Then I re-archived it with my distribution provisioning profile, and tried to install it to my device and it did install properly. Then I tried it on 2 separate devices-one that had it installed when I successfully deployed it on Tuesday, and one that didn't. Neither one worked. It did the thing where it gets almost to the end and then says "failed to install." So I thought "OK, it doesn't like the Entitlements.plist file. I have read some things that say Apple will reject the app for the app store if it has an Entitlements.plist in the build (is that true? I'd like to submit end of next week, if I can get this stupid beta going again!) I remove the file, archived and deployed it again, and I got the same error. I hooked one of the devices into the Organizer's console, and I got an error message that looks like this:

Jun 29 08:49:13 unknown installd[14394] <Error>: profile not valid: 0xe8008012 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 install_embedded_profile: Could not install embedded profile: -402620398 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 verify_signer_identity: Could not copy validate signature: -402620395 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.PHE3Kj/foo_extracted/Payload/Lenexa.app Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 install_application: Could not preflight application install Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 handle_install: API failed Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 send_message: failed to send mach message of 71 bytes: 10000003 Jun 29 08:49:13 unknown installd[14394] <Error>: 00381000 send_error: Could not send error response to client

So then I looked up the 0xe8008012 error and I note that people say that you should make sure that the provisioning profile is set correctly in XCode, and to make sure that the UDID in the provisioning profile matches the devices you are trying to install it on.

With this in mind, I tested to ensure that it wasn't a UDID issue by building against the same provisioning file that I successfully deployed against Tuesday. Still no go.

I changed all of the code-signing section on build-settings to look like this:

I read that some people rebuilt the project in XCode. I'd like to avoid doing that. Does anybody have any ideas? I would appreciate any!

最满意答案

我想出来了。 有人给了我一个糟糕的UDID号码。 坦率地说,XCode可以更好地管理这类问题。 不应该花半天时间来解决这些问题!

I figured this out. Somebody gave me a bad UDID number. To be frank, XCode could do a better job of managing these type of issues. It shouldn't take half-a-day to figure these things out!

更多推荐

本文发布于:2023-07-08 19:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1080209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!