规划手表套件整合
错误:WatchKit应用的Info.plist(1)中CFBundleVersion的值与随播广告应用的Info.plist(2.0)中的值不匹配。这些值必须匹配。
遇到上述错误。
- 改变了通知和放大的部署目标。 watchkit app。但是构建失败了
感谢。
答案 0 :(得分:22)
您需要确保CFBundleVersion
的Info.plist中的WatchKit App
与CFBundleVersion
Info.plist中的parent app’s
相同。
答案 1 :(得分:7)
For those of you who struggling with adapting your build autonumbering scripts (like this one) to WatchKit and getting the same dreaded The value of CFBundleVersion in your WatchKit app's Info.plist ... does not match the value in your companion app's Info.plist ...
error, here is the solution: set Strip Debug Symbols During Copy
to No for the project, remove same option overrides for all targets, make clean (Cmd+Shift+K) and build (Cmd+B).
Disclaimer: this is more hack than a solution, I don't know why it works, but it's the only way I got my autonumbering script working with WatchKit and I think this information would be useful for someone. If you have better ideas, please share.
Update: finally found a real solution. Turns out even without UI one could easily add a run script to WatchKit App target by manually editing project.pbxproj
. Thank you, Curtis Herbert!
答案 2 :(得分:1)
错误:WatchKit应用的Info.plist(14)中CFBundleVersion的值与随播应用的Info.plist(13)中的值不匹配。这些值必须匹配。
我终于发现问题是我的同伴应用Info.plist
的价值等于13
,不等于WatchKit App中的值。
因此,您必须确保每个 Bundle version
中的Info.plist
小组的值匹配。
答案 3 :(得分:1)
安装WatchKit应用程序扩展后。
中存在冲突捆绑版本字符串,简短&&捆绑版。
因此,将键更新为 info.plist 文件中的Extension和主应用目标中的值相等。
http://hugogiraudel.com/2013/07/15/understanding-sass-lists/
&&
答案 4 :(得分:0)
在更新内部版本号或版本后,无论何时遇到此类问题。请按照对我有用的步骤进行操作:
答案 5 :(得分:0)
欢迎参加聚会。我可以通过编辑Watchkit App和Watchkit Extension的Info.plist离子,然后在AppName(根级别)/ Targets / AppName / Versioning / Marketing Version中编辑营销版本来解决此问题。
希望这可以帮助遇到此问题的其他人。