Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,其专业应用程序目标。我想制作一个 Lite 版本,但不想制作另一个项目并从整个项目中复制粘贴文件。Xcode 中是否有任何预编译方式来为 Pro 和 Lite 版本进行两个构建设置和编译代码?
您可以复制当前的应用程序目标,并添加一些预处理器宏。说精简版的精简版,然后在你的代码做类似的事情:
#ifdef LITE //Lite #else //Pro #endif