[英]Getting xcconfig configuration file name from code
這是一種閱讀方式...
編輯您的Lab2.xcconfig文件並添加它
OTHER_SWIFT_FLAGS = -DLAB2
然后在你的代碼里面
#if LAB2
print("Build using lab2.xcconfig")
#else
print("Build using some_other.xcconfig")
#endif
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.