iOS 升级测试 - 应用程序标识符权利不匹配 [英] Upgrade testing for iOS - application-identifier entitlement does not match

查看:76
本文介绍了iOS 升级测试 - 应用程序标识符权利不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前使用 Xcode 7.3.1,我能够直接在 iPad 上的应用商店应用程序上构建并测试升级方案,效果非常好.本周我升级到 Xcode 8,当我尝试完全相同的方法时,我不断收到此升级错误

此应用程序的应用程序标识符权利与已安装应用程序的不匹配.这些值必须匹配才能允许升级."

我尝试了在此线程上发布的多种解决方案,但都没有奏效.我也没有手表应用程序.只是一个简单的 iOS 应用目标.

但我不知道项目构建设置中还有一个产品包标识符"属性.

上一个版本的应用程序是用 Xcode 7.3.1 构建的,它有以下设置:

  • 信息.plist:com.mycompany.myapp
  • 构建设置:com.mycompany.myapp.develop
  • 应用程序标识符:1234XXX5X6.com.mycompany.myapp

版本是用 Xcode 8.2.1 构建的,它有以下设置:

  • 信息.plist:com.mycompany.myapp
  • 构建设置:com.mycompany.myapp.develop
  • 应用程序标识符:1234XXX5X6.com.mycompany.myapp.develop

似乎新的 Xcode 有不同的应用程序标识符来源.所以我只是更正了产品包标识符",我的问题就解决了.

Previously with Xcode 7.3.1 I was able to build directly over my app store app on my iPad and test the upgrade scenario, which worked perfectly fine. This week I upgraded to Xcode 8 and when I try the exact same approach, I keep getting this upgrade error

"This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed."

I tried multiple solutions posted on this thread and none of them worked. I also don't have a watch app. Just a simple iOS app target.

App installation failed due to application-identifier entitlement

I deleted my certs and provisioning profiles and recreated them and still the same problem. I then went and downloaded Xcode 7.3.1 and tried it again with the exact same problem.

Now I am stuck without being able to fully test my upgrade scenario.

PLEASE HELP !!

解决方案

I had the same issue while trying to upgrade application. And here what I've found:

I checked application-identifier entitlements of old app and new app. You can do that by running codesign -d --entitlements :- path/to/AppName.app/AppName or open file "archived-expanded-entitlements.xcent" at path "AppName.app/AppName".

Application-identifier of old app was "1234XXX5X6.com.mycompany.myapp" but in new app it was "1234XXX5X6.com.mycompany.myapp.develop".

Usually I set "Bundle Identifier" directly in Info.plist.

But I didn't know that there is also a "Product Bundle Identifier" property in project Build Settings.

The previous version of app was built with Xcode 7.3.1 and it had following settings:

  • Info.plist: com.mycompany.myapp
  • Build Settings: com.mycompany.myapp.develop
  • application-identifier: 1234XXX5X6.com.mycompany.myapp

The new version was built with Xcode 8.2.1 and it had following settings:

  • Info.plist: com.mycompany.myapp
  • Build Settings: com.mycompany.myapp.develop
  • application-identifier: 1234XXX5X6.com.mycompany.myapp.develop

Seems like new Xcode have different source for application-identifier. So I just corrected "Product Bundle Identifier" and my problem was solved.

这篇关于iOS 升级测试 - 应用程序标识符权利不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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