1.xcconfig做用ui
配置工程,好比设置工程的宏。debug
根据实际状况区别配置,好比区分debug和release环境code
2.怎么作get
新建->config->project->info->configurations,关联configcmd
若是项目中使用到了cocoapods,须要在config中添加io
#include "Pods/Target Support Files/Pods-YourName/Pods-YourName.debug.xcconfig"
3.在build setting选中某个配置项,cmd+c复制而后到xcconfig的文件中,cmd+v就能够复制配置项到xcconfig中。class
4.cocoapods有更新时,须要先执行pod install配置