project>Info>iOS Deployment Target最大只能为10.3,才能支持32bit app
Architectures中要加上armv7
另外,注意xcode中debug默认启用Build Active architecture only
release版默认禁用Build Active architecture only
可以在debug时启用
但更好的办法是切换为release版,方法:xcode>Product>Scheme>Edit Scheme>Run>Info>Build Configuration:Release
可以用命令行lipo -archs libXX.a查看库支持的cpu构架
xcode编译library要同时支持armv7和arm64的设置
最新推荐文章于 2024-03-25 14:48:54 发布