I changed the version for my app in Xcode's "General" settings to be 0.3.0. I saved it and also looked into Info.plist
, the version was also updated there. But when I archived it and looked for the version number in the generated .ipa
file, I found it to be the version of the last archive I made for this project (which was 0.2.0). Thus I cannot upload the archive via Application Loader because the build with this version already exists in my iTunesConnect. How can I get Xcode to archive with the correct version number?
Asked
Active
Viewed 1,502 times
2

Codey
- 1,131
- 2
- 15
- 34
-
check in itunes connect in build section if your build already uploaded with this version then it will not allow to you to upload , – KKRocks Jun 24 '17 at 15:48
-
As I said the Version 0.2.0 ist already in iTunesConnect and it's legit that Application Loader doesn't upload it. The problem is that Xcode archives with the wrong version number. – Codey Jun 24 '17 at 15:51
-
2try to clean project with shift + option + k – KKRocks Jun 24 '17 at 15:52
-
Just tried it but didn't fix it. – Codey Jun 24 '17 at 15:55
-
is your device connect with mac ? – KKRocks Jun 24 '17 at 16:03
-
Yes I have an iPhone for development connected to my Mac. – Codey Jun 24 '17 at 16:04
-
2remove that and build achieve with generic device. – KKRocks Jun 24 '17 at 16:05
-
Thanks a lot. This worked for me – Codey Jun 24 '17 at 16:07
-
welcome i have add this as answer accept it and give upvote . – KKRocks Jun 24 '17 at 16:08
2 Answers
4
In my case I'd update it in "General" but the Info.plist file for release builds hadn't also been updated. Updating it manually there fixed the issue. The "General" tab numbers weren't used at all.

David Findlay
- 1,296
- 1
- 14
- 30
2
Remove device if your device connected with mac and build archive with generic device.

KKRocks
- 8,222
- 1
- 18
- 84