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
Post a Comment