iphone - How to read plist information (bundle id) from a shell script -


i'd write script can read info bundle identifier or maybe version number info.plist of app. xcode doesn't seem give information in it's environment variables. there other way them in sh/bash?

the defaults command can read/write plist file, give path minus .plist extension:

$ defaults read /applications/preview.app/contents/info cfbundleidentifier  com.apple.preview 

this pulls cfbundleidentifier value directly application bundle's info.plist file.

defaults works binary plists without steps.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -