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.
假设我想将环境变量 BAR 的值定义为“foo”,不带引号。如果我的 .xcconfig 文件有该行
BAR = foo
这会将其设置为“foo”。如果它有线也一样
有没有办法做我想做的事?
我找到了一种方法:
EMPTY_STRING = BAR = $(EMPTY_STRING) foo // the empty string protects leading space.