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

后端 未结 1 1546
春和景丽
春和景丽 2021-02-04 14:04

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 aga

1条回答
  •  独厮守ぢ
    2021-02-04 14:35

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

    0 讨论(0)
提交回复
热议问题