I include firebase to my pod, inside FirebaseCore.xcconfig there is
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.
Wondering if anyone can help me on this? I want to execute above code or FirebaseCore.xcconfig file
You can add these pre-processor definitions as compiler flags using the -D
option.
See more information about -D option
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
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.