简体   繁体   English

如何在降压版本上运行xcconfig

[英]How to run xcconfig on buck build

I include firebase to my pod, inside FirebaseCore.xcconfig there is 我将firebase包含到我的pod中,在FirebaseCore.xcconfig中有

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 FIRCore_VERSION=5.4.1 Firebase_VERSION=5.20.0

because above code is never execute, it will always fail to compile since FirVersion.m will always blocks it from compiling. 因为上面的代码永远不会执行,所以它总是会编译失败,因为FirVersion.m总是会阻止其编译。

Wondering if anyone can help me on this? 想知道是否有人可以帮助我吗? I want to execute above code or FirebaseCore.xcconfig file 我想执行以上代码或FirebaseCore.xcconfig文件

You can add these pre-processor definitions as compiler flags using the -D option. 您可以使用-D选项将这些预处理器定义添加为编译器标志。

See more information about -D option 查看有关-D选项的更多信息

So in this case you would add extra arguments in your rule eg 因此,在这种情况下,您将在规则中添加其他参数,例如

compiler_flags=['-DCOCOAPODS=1', '-DFIRCore_VERSION=5.4.1', '-DFirebase_VERSION=5.20.0']

Or something like that 或类似的东西

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

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