27

I'm new to the whole app world, and this is my first time using X-code (my apps I have built in the past, use Phonegap Build)

Anyway - I managed to create a stick page (eventually!). Now I've made some changes to it, but I can't for the life of me work out how to upload it! I get this error when pushing it:

CFBundleVersion Mismatch - The CFBundleVersion value '1' of extension 'Steampunk Junkies™ Sticker Pack.app/PlugIns/StickerPackExtension.appex' does not match the CFBundleVersion value '1.0.5.1' of its containing iOS application 'Steampunk Junkies™ Sticker Pack.app'.

CFBundleShortVersionString Mismatch - The CFBundleShortVersionString value '1.0' of extension 'Steampunk Junkies™ Sticker Pack.app/PlugIns/StickerPackExtension.appex' does not match the CFBundleShortVersionString value '1.0.5' of its containing iOS application 'Steampunk Junkies™ Sticker Pack.app'.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

My configs look like:

enter image description here

enter image description here

enter image description here

I've never had to manage the version numbers in X-Code before - so its entirly possible I've missed an important step when changing the version number.

Could someone please help me out? It's driving me up the wall!

NB: I'm using X-Code 8.2 beta (the version they offer you to download from the developer area)

UPDATE: Thank you so much to shallowThought helping me on this! While my setup didn't quite look like he posted, it made me look around to find the place he was talking about. In the end, I found it with the "down arrow", as circled below:

enter image description here

Once I clicked that, it let me view the information of the other section of the package. Man, I can't believe I missed that!

shallowThought
  • 19,212
  • 9
  • 65
  • 112
Andrew Newby
  • 4,941
  • 6
  • 40
  • 81

2 Answers2

53

I consider it an App Store bug, caused by StickerPackExtension targets version and build version differs from the Steampunk Junkies™ Sticker Pack application targets version:

To fix the error simply copy the version to make sure they are the same for both targets.

If you can not see your targets, click this symbol:


Update for newer Xcode versions:

When uploading to App Store, Xcode's Organiser now has a "Manage Version and Build Number" option which takes care of this issue by default, default is ticked:

enter image description here

shallowThought
  • 19,212
  • 9
  • 65
  • 112
  • 1
    Ah man, that was it! (slightly different, but it got me on the right track - I'll post an update above). Thank you for saving the remaining part of my hair! ;) – Andrew Newby Nov 29 '16 at 19:51
  • no problem - was just updating my OP the include the solution that worked :) – Andrew Newby Nov 29 '16 at 19:55
  • Actually you can have the error with the same version on both target – thibaut noah Feb 08 '18 at 10:38
  • @thibautnoah you have to be more detailed to be able to help. – shallowThought Feb 08 '18 at 20:01
  • Thank you so much I got the same problem its solved by changing the Build number – Mohammed Abunada Apr 12 '18 at 04:20
  • 2
    Can any one let me know if build number is different in target and extension still if we distribute it on AppStore is it any harm. Or any disadvantage. Please clear my doubt. Thanks. – shashi Gupta Oct 10 '18 at 11:28
  • 1
    @shashiGupta I am wondering same thing, it uploaded fine, and I have it ready to submit to App Store, I just hope they don't reject it because of this after waiting for review – MadeByDouglas Apr 03 '19 at 01:33
  • 1
    @MadeByDouglas I have submitted the build for review and Apple submitted it successfully. – shashi Gupta Apr 04 '19 at 03:42
  • 1
    @shashiGupta ok thanks good to know, we ended up pushing another build with different fixes anyway – MadeByDouglas Apr 16 '19 at 20:42
  • I could not find any specific Apple guideline, sometimes their warnings are warnings, sometimes, they are hints that the issue will block approval... I just released an app with *no* extension that had mismatched version numbers in the project. (Also, I was able to distribute it in TestFlight as well). – benc Sep 27 '19 at 16:05
7

Look under the Info tab to see if you have updated it there also.

You can change the build number and keep the same version number in order to archive it and submit to the app store.