应用程序加载程序无法从应用程序中提取权利 [英] Application loader Unable to extract entitlements from application

查看:98
本文介绍了应用程序加载程序无法从应用程序中提取权利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个IPA,该IPA由Discuz论坛的插件生成,ipa已使用企业开发人员证书签名,我想使用我的开发人员证书&退出.由应用程序加载程序提交给苹果

I had a IPA which generate by a plugin for discuz forum, the ipa was signed with enterprise developers certificate, I want to resign with my developers certificate & submit to apple by application loader

我使用iresign来对ipa进行签名,然后由应用程序加载程序发送给苹果,但是它出现了

I use iresign to resign the ipa then send to apple by application loader, but it appear

Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.

Unable to extract entitlements from application: /var/folders/cv/pksp8dfs71x74zt9st8y01xm0000gn/T/AppByMe32484-resigned.zip/Payload/Donkey.app/Donkey

我曾经如何使用iPhone Distribution签署应用程序:我的名字和移动供应配置文件创建

How ever I was sign the app with iPhone Distribution: my name as well as a mobile provision profile create

不知道会发生什么.. :(请帮助谢谢

can't figure out what happen.. :( Please help Thank you

推荐答案

这应该可行,我想您可以这样做.

This should be possible, I think you could do it like this.

首先从App Store的配置文件中提取一些可能的权利.这可能需要进一步编辑.

First extract some likely entitlements from the App Store provisioning profile. This may need further editing.

/usr/libexec/PlistBuddy -x -c "print :Entitlements " /dev/stdin <<< $(security cms -D -i AppStore.mobileprovision) > entitlements.plist

然后使用

codesign -f -s YourDistributionSigningIdentity --entitlements entitlements.plist --resource-rules your.app/ResourceRules.plist your.app 

并将其打包为IPA

xcrun -sdk iphoneos PackageApplication -v -o `pwd`/out.ipa your.app

如果未对应用进行代码签名,则可能缺少您的ResourceRules.plist.这些都是通用的,只需将类似的东西复制到位.

If the app wasn't code signed, then your ResourceRules.plist may be missing. These are generic, just copy something like this into place.

这篇关于应用程序加载程序无法从应用程序中提取权利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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