Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the build no. after archive an iOS project?

Tags:

ios

testflight

The version of the iOS app I submitted to iTunes Connect for Testflight beta testing is almost expired. AFAIK in order to extend the 30-days trial period I need to submit it again but with an incremented build version. Since the code base I archived is long time ago and I do not want to revert the code base to that version and archive it again. I just wonder if there is any possible way to change the build number of an archived iOS project. I would like to submit version 1.3.6 (1.3.6.8, which is already in iTunes Connect for beta testing) again as shown below.

enter image description here

like image 614
chubao Avatar asked Sep 08 '15 01:09

chubao


People also ask

Do I need to build before archive Xcode?

Make sure your build is successfulBefore beginning to archive your build, you need to make sure that the build is successful not only for Debug, for also for Release. Remember to test thoroughly with different types of scenarios to make sure there's no crash or bug.

What is iOS archive?

An . ipa file is an iOS and iPadOS application archive file which stores an iOS/iPadOS app. Each . ipa file includes a binary and can only be installed on an iOS, iPadOS, or ARM-based macOS device.

Where is archive build Xcode?

Open the Archives folder in Finder: Library > Developer > Xcode > Archives.


1 Answers

If you still have the original archive then of course. An Xcode Archive is just a directory, with a specific hierarchy.

You should just

  1. Open the Xcode Organizer - the one on the screenshot in your question
  2. Right click on the version you want to modify
  3. Select "Show in Finder"
  4. Right click on the archive "file" (something like: "ProjectName 9-8-15, 7.34 AM.xcarchive")
  5. Choose "Show Package Contents"

You should use a search tool to scan through the folders to find the version number in every file. For a basic iOS app it's enough to modify two files: Info.plist and dSYMs/YourProjectName.app.dSYM/Contents/Info.plist.

You're done at this point, but the organizer does not pick up the changes. You can just duplicate the whole .xcarchive file/folder and change the date with like one minute. Re-open the Organizer and you'll have your new version there.

Actually, you should probably just leave the original .xcarchive as it is and start with duplicating it before opening with "Show Package Contents".

like image 189
Viktor Benei Avatar answered Oct 12 '22 13:10

Viktor Benei