Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch kit CFBundleVersion

Planning for watch kit integration

error: The value of CFBundleVersion in your WatchKit app's Info.plist (1) does not match the value in your companion app's Info.plist (2.0). These values are required to match.

Struck with above error.
- changed the deployment targets of both notification & watchkit app. But build failed

Thanks.

like image 940
Rajesh Avatar asked Apr 10 '15 13:04

Rajesh


4 Answers

You need to make sure that the CFBundleVersion in the Info.plist of your WatchKit App is identical to the CFBundleVersion in your parent app’s Info.plist.

like image 57
LoVo Avatar answered Oct 26 '22 17:10

LoVo


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!

like image 21
Alexander Vasenin Avatar answered Oct 26 '22 17:10

Alexander Vasenin


error: The value of CFBundleVersion in your WatchKit app's Info.plist (14) does not match the value in your companion app's Info.plist (13). These values are required to match.

I finally figured out the problem is the value of my companion app 's Info.plist which equals to 13, is not equal to that value in WatchKit App.

So you have to make sure that the Bundle version panel 's value in each Info.plist is matched.

enter image description here

like image 44
Zigii Wong Avatar answered Oct 26 '22 18:10

Zigii Wong


After installing WatchKit application extension.There was conflict in

Bundle versions string, short && Bundle version .

So Update both of Keys to values which are equals in both the Extension and main app targets in info.plist file .

enter image description here

                                 &&

enter image description here

like image 36
Shrawan Avatar answered Oct 26 '22 18:10

Shrawan