在我的 app-info.plist 中有以下内容:
<key>CFBundleURLSchemes</key>
<array>
<string>fb17372828282822</string>
</array>
如何将号码 (fb17372828282822) 更改为如下内容:
<key>CFBundleURLSchemes</key>
<array>
<string>fb{CONSTANT THAT HOLDS 17372828282822}</string>
</array>
最佳答案
您需要使用build设置Preprocess Info.plist File 和Info.plist Preprocessor Prefix File。如果您需要避免标记之间的空格,您可以在 Info.plist Other Preprocessor Flags 设置中传递 -traditional
。
关于iphone - 我如何在 app-info.plist 中使用常量,这样我就不会硬编码了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8250284/