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

和自甴很熟 提交于 2019-12-03 04:42:50

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!