简体   繁体   中英

Control compilation of framework api in release or debug mode

I have vendor framework added to bridging header. I want to use framework only in debug mode. am using 2 header files one for debug one for release. In the release mode am not using that framework but i have the code in the application accessing that framework api. How should i stop the release mode compiling the api? I added macros #if DEBUG to the api but still its compilation fails.

conditional compiling works by adding flag in active compilation conditions. created sample for reference. SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG

https://github.com/sreexamus/ActiveCompilation

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