簡體   English   中英

我可以在另一個Info.plist鍵值的內部使用Info.plist中一個鍵的值嗎?

[英]Can I use the value for one key in Info.plist inside the value of another Info.plist key?

我想在另一個Info.plist鍵(NSContactsUsageDescription)的值內使用“捆綁顯示名稱”(CFBundleDisplayName)的值。

我嘗試了以下操作,但這不起作用:

${CFBundleDisplayName} must access your Address Book to input the scanned contact
information. ${CFBundleDisplayName} will never access your Address Book for marketing
or advertising purposes.

有人知道該怎么做嗎?

附錄:解決方案在本地化值時也應起作用。

使用${VARIABLE}您只能引用構建設置,而不能引用Info.plist中的其他值。 嘗試添加新的用戶定義的構建設置並使用它。 轉到“ 構建設置”選項卡,然后單擊右下角的“ 添加構建設置 ”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM