简体   繁体   中英

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

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.

在此输入图像描述

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".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM