简体   繁体   English

xcode体系结构宏,用于检测arm64或armv7

[英]xcode architectures macro for detecting arm64 or armv7

My project uses a third party framework (with some .a libraries). 我的项目使用第三方框架(带有一些.a库)。

And unfortunately the .a libraries I got only support 32bit device. 不幸的是,我得到的.a库仅支持32位设备。

So I can compiles and install the app on my ipod touch5 through xcode. 因此,我可以通过xcode在ipod touch5上编译并安装该应用程序。

But, I can not compiles and install the app on my iphone6 which is arm64. 但是,我无法在arm64的iphone6上编译并安装该应用程序。

So I want to comment out the codes use the .a libraries when I compile arm64 using some kind of macro like: 因此,当我使用某种宏来编译arm64时,我想注释掉使用.a库的代码:

#if (ARCHITECTURES == ARMV7 || ARCHITECTURES == ARMV7S)
    // only when bit32 device
    ThirdPartyManager::getInstance()->initSDK();
#endif

I tried to google but can not find any macro that I might be able to use ... 我试图用谷歌搜索,但是找不到我可以使用的任何宏...

Any suggestion will be appreciated thanks :) 任何建议将不胜感激谢谢:)

The variable should be called ARCHS. 该变量应称为ARCHS。

See this answer for more details about the more general question - how to get all build settings from the XCode: 请参阅此答案以获取有关更一般性问题的更多详细信息-如何从XCode获取所有构建设置:

How do I print a list of "Build Settings" in Xcode project? 如何在Xcode项目中打印“构建设置”列表?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在构建用于多种架构(x86_64,armv7,armv7s,arm64,i386)的C ++共享库时面临的问题 - Facing issues in building a C++ shared library for multiple architectures (x86_64, armv7, armv7s, arm64, i386) 适用于iOS的leptonica 1.69交叉编译(armv7,armv7s和arm64) - leptonica 1.69 crosscompile for iOS (armv7, armv7s and arm64) 如果仅针对armv7和armv7s编译应用程序,则在arm64设备上运行时会使用什么大小的数据类型? - If app is compiled only for armv7 and armv7s, what size data types does it use when running on an arm64 device? 适用于arm64 iPhone的Xcode 5编译失败 - xcode 5 compile for arm64 iPhone failed boost :: context for arm64吗? - boost::context for arm64? ARM64上的多播“没有这样的设备”? - Multicast 'no such device' on ARM64? 为什么Apple的Clang(来自Xcode 5)将typeinfos设置为arm64的private_extern? - Why does Apple's Clang (from Xcode 5) make typeinfos private_extern for arm64? xcode 6.x arm64代码生成失败,没有任何编译或链接错误 - xcode 6.x arm64 code build failed without any compile or link error ARMv7 NEON:将 32 位掩码解包为 64 位掩码 - ARMv7 NEON: Unpack 32 bit mask to 64 bit mask SDL2 M1 Mac - 链接和嵌入式框架“SDL2_image.framework”缺少此目标所需的一个或多个架构:arm64 - SDL2 M1 Mac - The linked and embedded framework 'SDL2_image.framework' is missing one or more architectures required by this target: arm64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM