osx – 在命令行中编辑ipa plist文件

前端之家收集整理的这篇文章主要介绍了osx – 在命令行中编辑ipa plist文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想使用命令行更改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>
尝试这个:
/usr/libexec/PlistBuddy -c "Set :items:0:Metadata:bundle-identifier newidentifier" your.plist
原文链接:https://www.f2er.com/bash/388663.html

猜你在找的Bash相关文章