1.plist文件

<?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>LH2WSJC9RG.com.bingjuncompany.hongren</string>
<key>aps-environment</key>
<string>production</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>LH2WSJC9RG.*</string>
</array>
</dict>
</plist>

 

2.下载profile文件替换ipa包中的profile文件

 

3.命令

codesign -f -s "iPhone Distribution: Shanghai Bingjun Network Technology Co., Ltd" --entitlements /Users/bingjun/Desktop/entitlements.plist ./Payload/yybjproject.app