Xcode - exclude files in a custom configuration - better way?

前端 未结 3 770
轻奢々
轻奢々 2020-12-28 19:02

I\'m trying to come up with a way to make it easy to switch out our \"mock\" data services and our live ones. Basically, we\'ll have live servers with real web services, but

3条回答
  •  醉酒成梦
    2020-12-28 19:23

    See http://lists.apple.com/archives/xcode-users/2009/Jun/msg00153.html

    The trick is to define EXCLUDED_SOURCE_FILE_NAMES in the configuration you want to exclude the files from, and set the value of that custom build setting to a list of the file names (or a pattern that matches those, and only those, file names).

提交回复
热议问题