Preprocessor macro in parent project for use in subproject

余生长醉 提交于 2019-12-12 10:36:58

问题


I have an Xcode project, which has a subproject which is a static library. I've defined a preprocessor macro in the parent project (in Build Settings), and I want it to be recognized by the subproject at compile time (I have some #ifdef statements in the subproject). But the macro is always undefined in the subproject, no matter what I do. Is it possible to do what I want?

来源:https://stackoverflow.com/questions/21470300/preprocessor-macro-in-parent-project-for-use-in-subproject

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!