我想使用命令行更改plist文件中的“bundle-identifier”字符串值。使用’defaults’,我该怎么做?
FYI这里是整体的整体:
<?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>
尝试这个:
原文链接:https://www.f2er.com/bash/388663.html/usr/libexec/PlistBuddy -c "Set :items:0:Metadata:bundle-identifier newidentifier" your.plist