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.
如果info.plist 中不存在某些键(例如URL 类型),是否可以生成 xcode 警告, 或者有什么方法可以提醒此类问题 任何帮助将不胜感激
把这个和这个结合起来
您基本上阅读了 info.plist 并检查密钥是否存在,如果不存在,请添加警告(我不确定这是否有效,因为即使没有输入 if 语句也可能会调用 #warning 指令)。测试它,看看会发生什么。