终端下输入lipo命令
lipo -info **.a / **.framework
成功会返回下面这段信息
Architectures in the fat file: libXXXXX.a are: armv7 i386 x86_64 arm64
如果输入lipo命令出现
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
则可能是升级系统时导致。重新安装工具。在终端中输入命令自行安装:
xcode-select -install
本文介绍如何使用lipo命令检查iOS应用的架构信息,并解决因系统升级导致的lipo命令错误。通过重新安装Xcode命令行工具,可以确保lipo等工具的正常运行。

被折叠的 条评论
为什么被折叠?



