将ios第三方APIS转换为64位架构

时间:2021-01-07 04:51:24

i am new in ios development and now days working on an app that has been designed in 32 bit architecture with lots of 3rd party apis and cocopods usage in it.

我是ios开发的新手,现在正在开发一款采用32位架构设计的应用程序,其中包含大量第三方api和cocopods。

As apple has decided to move all the apps to 64-bit architecture, i'm unable to figure out if there's any api in my code that's not following the rules and is still in 32bit architecture.

由于苹果决定将所有应用程序迁移到64位架构,我无法弄清楚我的代码中是否存在任何不符合规则且仍处于32位架构状态的api。

is there any way to check that and to convert them for 64bit architecture support.???

有没有办法检查并转换为64位架构支持。???

1 个解决方案

#1


1  

You can use lipo -info to get the supported architectures. For example:

您可以使用lipo -info来获得支持的体系结构。例如:

lipo -info mylib.a

lipo -info mylib.a

Could give an output like:

可以提供如下输出:

Architectures in the fat file: mylib.a are: armv7 i386 x86_64 arm64

胖文件中的体系结构:mylib.a是:armv7 i386 x86_64 arm64

In this case, you see arm64, which is the 64-bit slice you want.

在这种情况下,您会看到arm64,它是您想要的64位切片。

As far as upgrading your libraries, you'll need to rebuild the libraries yourself or download new versions with 64-bit support.

至于升级库,您需要自己重建库或下载具有64位支持的新版本。

#1


1  

You can use lipo -info to get the supported architectures. For example:

您可以使用lipo -info来获得支持的体系结构。例如:

lipo -info mylib.a

lipo -info mylib.a

Could give an output like:

可以提供如下输出:

Architectures in the fat file: mylib.a are: armv7 i386 x86_64 arm64

胖文件中的体系结构:mylib.a是:armv7 i386 x86_64 arm64

In this case, you see arm64, which is the 64-bit slice you want.

在这种情况下,您会看到arm64,它是您想要的64位切片。

As far as upgrading your libraries, you'll need to rebuild the libraries yourself or download new versions with 64-bit support.

至于升级库,您需要自己重建库或下载具有64位支持的新版本。