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

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -