No matter what I change the version or build number to in xCode I get this error code. When I change the version number it does not update when archiving the app.
E.g. I change 1.0 to 1.1 and everything in xcode shows up with the updated 1.1, but when I hit archive, the archived app shows 1.0.
Thanks for any help.
So it appears I was updating the wrong part of settings. On the top bar on the left hand side where it says "General Capabilities etc." where it has your app name. I was updating the target with the round E instead of the one with the App Store symbol. Don't really know what the difference is but as soon as I changed the target my archive reflected the new version number.