Create 32-bit and 64-bit Static Library for Devices and Simulators - Xcode

邮差的信 提交于 2019-12-11 07:53:21

问题


I've got this SDK that supports 64-bit. For whatever reason, the library does not build on iOS simulators. To circumvent this I've created my own static library that instantiates the headers and implements everything. This method has always worked and allowed me to build and run the project on a simulator and devices (The standard library is used for devices and my static library is used for simulators).

Now that we have 64-bit and 32-bit devices and simulators, my static library does not build for 32-bit simulators. However, it does build for all devices (32-bit and 64-bit) and 64-bit simulators.

Does anyone know how to create a static library that works for both 32-bit and 64-bit devices and simulators?


回答1:


you need to create fat library which is a combination of libraries for different architecture. have alook at this gist Create fat library



来源:https://stackoverflow.com/questions/27511151/create-32-bit-and-64-bit-static-library-for-devices-and-simulators-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!