简体   繁体   中英

Xcode issue building 64-bit app with LibX library

I'm trying to use libXl for iOS and it is giving me a linker error. "missing required architecture x86_64"

I've changed the Architechture to standard but when I try to build for a 64 bit simulator, it gives me the linker error.

What needs to be changed to fix this error if I don't have the source code for the library?

Unfortunately, if you don't have the source code for the library and the library doesn't have a 64-bit slice, then you can't compile a 64-bit version of your app. (By the looks of things, even the commercial version of LibXL doesn't support 64-bit yet.)

Additionally, you can't mix 32 and 64 bit code/libraries within an app, I'm afraid. (If your app is 32 bit, the OS will load a 32 bit version of UIKit, etc. but that's as far as it goes.)

However, if you simply build your app as 32-bit if will run perfectly fine on 64-bit (ie: A7 processor+) devices.

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