0
1

More than 3 years have passed since last update.

Info.plistからバージョン情報を取得する

Posted at

バージョン情報の取得方法

VersionNameの場合(1.2.3.4的なやつ)

VERSION_NAME=(`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" hoge.app/Contents/Info.plist`)
echo $VERSION_NAME

VersionCodeの場合は、CFBundleShortVersionStringをCFBundleVersionに置き換える。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1