是否有任何命令可以使用终端获取iOS的应用程序包构建版本号?

发布于 2025-02-10 18:47:35 字数 206 浏览 1 评论 0原文

是否有任何命令可以使用终端获取iOS的应用程序包构建版本号?

在Android中,我可以使用ADB命令获得构建版本,希​​望知道类似的方法来获得iOS的构建版本号。

对于Android

adb shell dumpsys软件包包| name | GREP版本名称

Is there any command to get app package build version number for iOS using terminal ?

In Android I can get the build version using adb command want to know similar way to get build version number for iOS.

For Android

adb shell dumpsys package package_name | grep versionName

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千年*琉璃梦 2025-02-17 18:47:35

据我所知,没有直接的方法可以实现类似于adb shell ,但是有两种方法可以建议您尝试:

  1. 如果使用 go-osios
  • 下载用于OS
  • Execute ./ ios Apps -udid = your-的 二进制文件device-udid
  • 您将在JSON中获取输出,您可以解析,通过bundledentifier以及该JSON对象的内部找到应用程序的对象,您可以找到cfbundleshortversionstringcfbundleversion
  1. 如果使用fastlane
  • execute fastlane运行get_ipa_info_plist_value
  • 时,请提供IPA文件的路径
  • 在询问提供您要从info.plist中获得的密钥值 。 >

As far as I know there is no straightforward way to achieve this similar to adb shell but there are two ways I can suggest you try out:

  1. If the app is already installed on the device using go-ios:
  • Download the binary for your OS
  • Execute ./ios apps --udid=YOUR-DEVICE-UDID
  • You will get output in JSON which you can parse, find the object for your app by bundleIdentifier and inside that JSON object you can find CFBundleShortVersionString and CFBundleVersion
  1. If you have the IPA file using fastlane get_ipa_info_plist_value
  • Install fastlane
  • Execute fastlane run get_ipa_info_plist_value
  • Provide the path to your IPA file when asked
  • Provide the key value you want to get from Info.plist: either CFBundleShortVersionString or CFBundleVersion
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文