在命令行编辑IPA plist文件 [英] Edit ipa plist file in command line
本文介绍了在命令行编辑IPA plist文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用命令行plist文件,以改变捆绑标识符字符串值。使用'缺省',我会怎么做呢?
供参考这里是将其整体中的plist:
<?XML版本=1.0编码=UTF-8&GT?;
!< DOCTYPE的plist PUBLIC - //苹果// DTD PLIST 1.0 // ENhttp://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<的plist版本=1.0>
<&字典GT;
<密钥GT;项目< /键>
<阵列GT;
<&字典GT;
<密钥GT;资产< /键>
<阵列GT;
<&字典GT;
<密钥GT;&种LT; /键>
<串GT;软件的封装与LT; /串>
<密钥GT; URL< /键>
<string>http://eventpilotadmin.com/doc/clients/ISES/Eventworld2011/proofs/iphone_Eventworld2011_proof.ipa</string>
&LT; /字典&GT;
&LT; /阵列&GT;
&LT;密钥GT;及元数据LT; /键&GT;
&LT;&字典GT;
&LT;密钥GT;束标识符和LT; /键&GT;
&LT;串GT; com.ativsoftware.Eventworld2011&LT; /串&GT;
&LT;密钥GT;捆绑版本和LT; /键&GT;
&LT;串GT; 1.0 LT; /串&GT;
&LT;密钥GT;&种LT; /键&GT;
&LT;串GT;软件&LT; /串&GT;
&LT;密钥GT;标题&LT; /键&GT;
&LT;串GT; Eventworld2011&LT; /串&GT;
&LT; /字典&GT;
&LT; /字典&GT;
&LT; /阵列&GT;
&LT; /字典&GT;
&LT; / plist中&GT;
解决方案
试试这个:
的/ usr / libexec中/ PlistBuddy -c设置:项目:0:元数据:捆绑标识符newidentifieryour.plist
I'd like to change the 'bundle-identifier' string value in a plist file using the command line. Using 'defaults', how would I do this?
FYI here is the plist in its entirety:
<?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>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://eventpilotadmin.com/doc/clients/ISES/Eventworld2011/proofs/iphone_Eventworld2011_proof.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.ativsoftware.Eventworld2011</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Eventworld2011</string>
</dict>
</dict>
</array>
</dict>
</plist>
解决方案
Try this:
/usr/libexec/PlistBuddy -c "Set :items:0:metadata:bundle-identifier newidentifier" your.plist
这篇关于在命令行编辑IPA plist文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文