重新调整iOS配置文件 [英] Resigning an iOS provisioning profile
本文介绍了重新调整iOS配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的客户有一款iOS应用,支持应用内购买,游戏套件和推送通知,目前在应用商店中。我想使用内部企业分发证书辞职,在内部进行测试,但仍然能够测试与原始配置文件相关的服务。这可能吗?
My client has an iOS app with In-app purchase, Game-kit and Push notifications enabled, it is currently on the app store. I would like to resign the application using an in-house enterprise distribution certificate, to test internally, but still be able to test services tied to the original provisioning profile. Is this possible?
推荐答案
我最终做了这个,这是以下几个组合: -
I ended up doing this, which is a combination of :-
- Very tricky question about iPhone/iPad resigned builds behaviors
和
- Re-sign IPA (iPhone)
1)创建权利plist,防止钥匙串等问题
1) Create Entitlements plist, prevent issues with the Keychain etc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>GBA9L2EABG.com.your.bundle.id.MyApp</string>
<key>get-task-allow</key>
<false/>
</dict>
2)解压缩IPA
unzip Application.ipa
3)删除旧代码签名
rm -r "Payload/Application.app/_CodeSignature" "Payload/Application.app/CodeResources" 2> /dev/null | true
4)替换嵌入式移动设备配置文件
4) Replace embedded mobile provisioning profile
cp "MyEnterprise.mobileprovision" "Payload/Application.app/embedded.mobileprovision"
5)辞职
/usr/bin/codesign -f -s "iPhone Distribution: Certificate Name" --resource-rules "Payload/Application.app/ResourceRules.plist" --entitlements Entitlements.plist "Payload/Application.app"
6)重新包装
zip -qr "Application.resigned.ipa" Payload
这篇关于重新调整iOS配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文