[英]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.