繁体   English   中英

如何找到用于 build.ipa 文件的 swift 版本

[英]How to find the swift version used to build .ipa file

我无法访问源代码,只能访问.ipa 文件,我将确认用于开发.ipa 文件的swift 版本作为项目的QA,我该怎么做? 我可以在终端上使用此命令获取 iOS 版本。

plutil -p Payload/MyData.app/Info.plist | grep DTSDKName

在终端中,您可以访问包含 your.ipa 文件的文件夹并将其解压缩。

unzip YourApp.ipa

然后,您将获得一个名为 Payload 的文件夹,其中包含您的应用程序 ( XXXXXX.app )

然后更改目录以列出您的应用程序中的内容:

cd Payload/XXXXXX.app/

进入应用文件夹结构后,您应该能够看到Info.plist文件。

如果 plist 文件是二进制格式,您可以先将其转换为 XML,方法是运行:

plutil -convert xml1 Info.plist

然后打开文件:

vi Info.plist

在此文件中,您应该会找到包含内部版本号的DTPlatformBuildDTSDKBuild

This build number can be then found following the below url to get the information about the Xcode version used and the SDK versions to build the.ipa and also the release notes for each Xcode version.

https://xcodereleases.com

在发行说明中,您应该找到有关 Swift 详细信息的部分。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM