[英]How can I add custom entries into iOS watchKit extension info.plist?
I use info.plist to define variables into my app and its today extension.我使用info.plist将变量定义到我的应用程序及其今天的扩展中。
But I can't add those variables to the WatchKit
info.plist without getting an error while building :但是我无法将这些变量添加到
WatchKit
info.plist而不在构建时出错:
Am I missing something?我错过了什么吗?
(xCode 7.0 beta 6) (xCode 7.0 测试版 6)
Ok, I've just found my error.好的,我刚刚发现了我的错误。 There are 2 Info.plist for the
watchKit
app. watchKit
应用程序有 2 个Info.plist 。
1) The first is in the device code (directory : Dealabs WatchKit Extension ) 1)第一个是在设备代码中(目录: Dealabs WatchKit Extension )
2) The second is in the watch code (directory : Dealabs WatchKit App ) 2)第二个在手表代码中(目录: Dealabs WatchKit App )
I was adding my custom vars into the watch code Info.plist ... moving all my vars to the first solved the problem.我正在将我的自定义变量添加到监视代码Info.plist 中……将我所有的变量移动到第一个解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.