【发布时间】:2012-12-06 19:28:32
【问题描述】:
我在启动时传递了一个参数:-D DEBUG,它允许我在我的发布应用程序中使用以下内容:
#ifndef DEBUG
/* Some code I only want to be run when using the release app */
#endif
当我运行git status时,它显示添加-D DEBUG时更改的文件是MyExampleProject.xcodeproj/xcuserdata/myusername.xcuserdatad/xcschemes/MyExampleProject.xcscheme
应该使用常用的 Xcode .gitignore file 排除。有没有其他方法可以包含符合.gitignore 且不依赖于我的用户帐户xcuserdata 的此参数?
【问题讨论】: