是否可以更新配置文件而无需升级iOS企业应用程序? [英] Is it possible to renew provisioning profiles without needing to upgrade iOS enterprise apps?

查看:130
本文介绍了是否可以更新配置文件而无需升级iOS企业应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新生成的配置文件似乎不再与同一应用的旧版本兼容。新应用程序可以使用新的配置文件,但是我们不希望升级链接到旧版本后端的所有应用程序,并且不能与最新的应用程序兼容。我们确实需要尽快续订配置文件,以保持旧应用的正常运行。我们之前已经这样做了,但现在我们遇到了以下问题。

A newly generated provisioning profile no longer seems to be compatible with older versions of the same app. The new app does work with the new profile, however we do not want to upgrade all apps which are linked to older version backends and are not all compatible with the newest app. We do need to renew the profiles shortly in order to keep the old apps working. We have done this before, but now we are having the following issues.

当使用更新的配置文件打开应用程序时,它在控制台日志中失败并显示以下消息:

When opening the app with an updated provisioning profile, it fails with this message in the console log:

entitlement 'com.apple.developer.team-identifier' has value not permitted by provisioning profile 'My Profile'

在检查配置文件时,结果表明包含团队标识符的数组现在不再是数组,而是单个数组元素。

When examining the profile, it turns out that the array containing team identifiers is now no longer an array, but a single element.

以前的配置文件:

<key>com.apple.developer.team-identifier</key>
<array>
    <string>SomeIdentifier</string>
</array>

续订配置文件:

<key>com.apple.developer.team-identifier</key>
<string>SomeIdentifier</string>

是否可以向iOS配置文件添加团队标识符?这样它就会再次成为一个数组。

Is it possible to add a team identifier to an iOS provisioning profile? That way it would become an array again.

在Xcode项目中,我能够在两个地方找到团队标识符。在pbxproj文件和证书中。它似乎不可能在项目中为同一目标添加任何标识符,因为它是一个键值对样式赋值。

In the Xcode project, I was able to find the team identifier in two places. In the pbxproj file and in a certificate. It doesn't look like it is possible to add any identifiers in the project for the same target since it's a key-value pair style assignment.

我也试图破解新的配置文件,只是将数组标签包装在项目周围(希望它不在签名范围之外)。不幸的是,当我尝试将被黑客入侵的配置文件安装到设备上时,Xcode崩溃了(可能不会处理签名异常)。

I also tried to hack the new provisioning profile and just wrap the array tags around the item (hoping it would fall outside the signature scope). Unfortunately Xcode crashes when I try to install the hacked profile to a device (probably does not handle signature exceptions).

任何添加标识符或其他获取方式的方法非常感谢更新的配置文件。

Any way to add an identifier or an other way to get a renewed profile compatible would be greatly appreciated.

推荐答案

我认为没有办法按照你的方式编辑配置文件正在寻找。如果有,那么它将是 Apple 安全漏洞。

I don't think there is any way to edit provisioning profile the way you are looking. If there is then it will be Apple security breach.

早期,我们的企业应用存在同样的问题,其中App停止为所有用户开放 - 以及问题是证书已过期。我找不到动态更新企业应用,就像我们为 AppStore应用做的那样。

Early days, We had same issues with our Enterprise Apps where App stopped opening for all our users - and the problem was certificate expired. I couldn't find to renew on the fly for Enterprise Apps like we do for AppStore Apps.

我必须通过 Jenkins 自动创建相同的IPA并续订证书并将其存储在服务器上,App挑选自动启动新二进制文件并要求用户升级它。

I had to automate process of creating same IPA with renewed certificate through Jenkins and storing it on server, App picks up new binary automatically and ask users to upgrade it.

如果你能找到其他任何好方法 - 我会感兴趣: - )

If you can find out any other good way - I would be interested :-)

这篇关于是否可以更新配置文件而无需升级iOS企业应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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