简体   繁体   English

iOS Provisioning Profile不在一个特定设备上安装

[英]iOS Provisioning Profile not installing on one particular device

I recently have distributed an app for testing, and the test team are having a problem installing the app, more specifically the provisioning profile associated with the app. 我最近分发了一个用于测试的应用程序,测试团队在安装应用程序时出现问题,更具体地说是与应用程序关联的配置文件。

They are using an iPhone 4 (iOS 5.1.1) and are getting "Could not install the provisioning profile due to an unknown error" 他们正在使用iPhone 4(iOS 5.1.1)并且因“未知错误而无法安装配置文件”

I am used to seeing this when a UDID is not registered against the profile which is trying to be installed, but they are adamant that they have supplied the correct UDID. 我习惯于在没有针对尝试安装的配置文件注册UDID时看到这一点,但他们坚持认为他们提供了正确的UDID。 In terms of the profile, both looking at provisioning on the iOS Dev account, and opening in a text editor confirms that the UDID that has been supplied is definitely present. 在配置文件方面,无论是在iOS开发帐户上查看配置,还是在文本编辑器中打开,都确认已提供的UDID肯定存在。

My question is, are there any known issues (other than wrong UDID supplied) which could cause this to occur on a device, even if that device is authorised to install that particular provisioning profile? 我的问题是,是否有任何已知问题(提供错误的UDID除外)可能导致在设备上发生这种情况,即使该设备有权安装该特定配置文件?

Thanks 谢谢

This won't answer your question because your problematic device is iOS-5.1, but it may help lots of other people: 这不会回答您的问题,因为您的问题设备是iOS-5.1,但它可能会帮助很多其他人:

Another possible issue since iOS7 is where did you find UDID. 自iOS7以来的另一个可能的问题是你在哪里找到UDID。 As Apple says : 正如Apple所说

In iOS 7, apps that are already on the store or on users' devices that call this removed API will no longer be returned the UDID. 在iOS 7中,已经在商店或用户设备上调用此已删除API的应用将不再返回UDID。 Instead, -[UIDevice uniqueIdentifier] will return a 40-character string starting with FFFFFFFF, followed by the hex value of -[UIDevice identifierForVendor]. 相反, - [UIDevice uniqueIdentifier]将返回一个以FFFFFFFF开头的40个字符的字符串,后跟十六进制值 - [UIDevice identifierForVendor]。

Consequetly, check the UDID your client/collaborator sends to you: if it begins with FFFFFFFF, thats a wrong one. 请注意,检查您的客户/协作者发送给您的UDID:如果它以FFFFFFFF开头,则表示错误。

The only & unique method to get UDID under iOS7 is to plug your device to a computer, launch iTunes (or Xcode) and copy the displayed UDID. 在iOS7下获取UDID的唯一唯一方法是将设备插入计算机,启动iTunes(或Xcode)并复制显示的UDID。

看起来以编程方式生成的UDID会提供来自iOS 7的随机字母数字代码。因此,要确保使用正确的代码,请将其连接到iTunes,然后复制UDID。

There may be few reasons behind that because information is not enough so i can just guess - 可能背后的原因很少,因为信息不够,所以我可以猜测 -

  • If you're getting any boot strap error in console then delete app from device then switched OFF your device then ON and try again. 如果您在控制台中出现任何引导程序错误 ,则从设备中删除应用程序,然后关闭设备然后再打开并重试。
  • May be in your device there is already an app having same profile so your app would overwrite on previous one and new app would not be install. 可能在您的设备中已经有一个具有相同配置文件的应用程序,因此您的应用程序将覆盖之前的应用程序,并且新的应用程序将无法安装。
  • Last It might be provisioning profile issue. 最后它可能是配置文件问题。 Make it again. 再做一遍。

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

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