简体   繁体   English

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

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

I don't have access to the source code but only the.ipa file and I'm to confirm as the QA to the project the swift version used to develop the.ipa file, how do I?我无法访问源代码,只能访问.ipa 文件,我将确认用于开发.ipa 文件的swift 版本作为项目的QA,我该怎么做? I can get the iOS version using this command on the terminal.我可以在终端上使用此命令获取 iOS 版本。

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

In Terminal, you can access the folder containing your.ipa file and unzip it.在终端中,您可以访问包含 your.ipa 文件的文件夹并将其解压缩。

unzip YourApp.ipa

You'll get then a folder called Payload containing your app ( XXXXXX.app )然后,您将获得一个名为 Payload 的文件夹,其中包含您的应用程序 ( XXXXXX.app )

Then change the directory to be able to list what is in your app:然后更改目录以列出您的应用程序中的内容:

cd Payload/XXXXXX.app/

Once in your app folder structure, you should be able to see the Info.plist file.进入应用文件夹结构后,您应该能够看到Info.plist文件。

If the plist file is in the binary format, you can convert it to XML first by running:如果 plist 文件是二进制格式,您可以先将其转换为 XML,方法是运行:

plutil -convert xml1 Info.plist

Then open the file:然后打开文件:

vi Info.plist

In this file you should find DTPlatformBuild and DTSDKBuild which will contain a Build number.在此文件中,您应该会找到包含内部版本号的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. 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 https://xcodereleases.com

In the release notes, you should find a section for Swift details.在发行说明中,您应该找到有关 Swift 详细信息的部分。

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

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