我可以在 Xcode 上重新打开 .xcarchive 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14949043/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:48:13  来源:igfitidea点击:

Can I re-open .xcarchive on Xcode?

iphonexcodeipadarchive

提问by tomDev

Is it possible to re-open an .xcarchive file on Xcode?

是否可以在 Xcode 上重新打开 .xcarchive 文件?

I know this is not common, but I would like to open a project exactly as it was submitted to the App Store. I don't have back up of that exact build, so it would be really great to open the archive copy!

我知道这并不常见,但我想打开一个与提交到 App Store 时完全一样的项目。我没有那个确切版本的备份,所以打开存档副本真的很棒!

Before you ask why don't I just download it from the store, I must say this build has been approved and is just pending on my release. :)

在你问我为什么不直接从商店下载它之前,我必须说这个版本已经被批准并且正在等待我的发布。:)

Thanks!

谢谢!

回答by rob mayoff

A xcarchiveis a folder containing a (compiled) app bundle, a dSYM(debug file) for the app, and an Info.plistcontaining metadata about the archive (such as the name of the app and the date the archive was created). You can look inside a `xcarchive by control-clicking or right-clicking it in the Finder and choosing “Show Package Contents”.

Axcarchive是一个文件夹,其中包含(已编译的)应用程序包、应用程序的dSYM(调试文件)以及Info.plist包含有关存档的元数据(例如应用程序的名称和存档的创建日期)。您可以通过在 Finder 中按住 Control 单击或右键单击它并选择“显示包内容”来查看 `xcarchive 的内部。

The archive does not contain your app's source code (unless you have made a serious mistake in your project configuration).

存档不包含您的应用程序的源代码(除非您在项目配置中犯了严重错误)。

You should use a version tracking system like git to store your source code. When you create an xcarchivefor distribution, you should tag the current version of the source code in your build system, so that you can easily extract the source code used to build that archive.

你应该使用像 git 这样的版本跟踪系统来存储你的源代码。当您创建xcarchive用于分发时,您应该在构建系统中标记源代码的当前版本,以便您可以轻松地提取用于构建该存档的源代码。

回答by Jayprakash Dubey

You can see contents of ProjectName [Date Time].xcarchiveby right click on it and select Show Package Content.

您可以通过右键单击ProjectName [Date Time].xcarchive并选择Show Package Content 来查看它的内容

It comprises of three things :

它包括三件事:

  1. dSYMs: dSYM files store the debug symbols for your app.

  2. Info.plist: property list containing details such as ApplicationProperties, ArchiveVersion, CreationDate, Name, Scheme.

  3. Products: This contains App file for your project.

  1. dSYMs:dSYM 文件存储您的应用程序的调试符号。

  2. Info.plist:包含详细信息的属性列表,例如 ApplicationProperties、ArchiveVersion、CreationDate、Name、Scheme。

  3. 产品:这包含您的项目的应用程序文件。

Step 1

第1步

Step 2

第2步