简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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