ios 档案未显示在 Xcode 4 的管理器中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5265772/
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-08-30 19:11:35  来源:igfitidea点击:

Archives not showing up in Organizer for Xcode 4

xcodeiosxcode4

提问by Ralph B

I'm trying to create an IPA in Xcode 4, much like the person who asked this question:

我正在尝试在 Xcode 4 中创建一个 IPA,就像问这个问题的人一样:

Xcode 4: create IPA file instead of .xcarchive

Xcode 4:创建 IPA 文件而不是 .xcarchive

So--I got my Archive completing successfully--supposedly. It dumps .xcarchive files for the project in its destination folder. But these archives don't show up in my Organizer window. So I can't share them as described in the above question to create the IPA.

所以 - 我成功地完成了我的档案 - 据说。它将项目的 .xcarchive 文件转储到其目标文件夹中。但是这些档案不会显示在我的管理器窗口中。因此,我无法按照上述问题中的描述共享它们以创建 IPA。

There are no errors in the archiving process--they seem to be signed OK. So why aren't the archives showing up in the archive panel on the Organizer? Is there some step I'm missing...or obscure setting I need to modify?

存档过程中没有错误——它们似乎签名正常。那么为什么档案没有显示在管理器的档案面板中呢?有没有我遗漏的步骤……或者我需要修改的模糊设置?

回答by Ron Srebro

EDIT (Incorporated all comments to a single answer)

编辑(将所有评论合并到一个答案中)

Try one of the following (or all)

尝试以下一项(或全部)

  1. Instead of using Build For -> Archive, in the product menu just use archive. It will show up then.

  2. In the scheme editor, edit the scheme and go to the Archive tab, make sure the check box for show in Organizer is checked.

  3. In the archive tab in the scheme editor check the build configuration used for archiving. Make sure it has the right entitlements file & certificates.

  4. In the build settings switch Skip Install -> Release to NO, for the build settings used for archiving.

  5. Make sure the archives folder and XCode project files are inside the same shared folder if network drive is used. I took me a few days to finally figure this out as I placed my XCode source files from a Windows shared folder, but the Archives folder is on the local Mac, which caused archives not picked up by Organizer.

  1. 而不是使用 Build For -> Archive,在产品菜单中只使用存档。到时候就会出现。

  2. 在方案编辑器中,编辑方案并转到存档选项卡,确保选中在管理器中显示的复选框。

  3. 在方案编辑器的存档选项卡中,检查用于存档的构建配置。确保它具有正确的权利文件和证书。

  4. 在构建设置中将 Skip Install -> Release 切换为 NO,用于存档的构建设置。

  5. 如果使用网络驱动器,请确保存档文件夹和 XCode 项目文件位于同一共享文件夹中。我花了几天时间终于弄清楚了这一点,因为我将 XCode 源文件从 Windows 共享文件夹中放置,但 Archives 文件夹位于本地 Mac 上,这导致 Organizer 无法获取档案。

Thanks to @Smikey & @Ralph B & @Scott McMillin

感谢@Smikey & @Ralph B & @Scott McMillin

回答by Cliff Viegas

This is based on another answer from a similar question which can be found at Archive does not appear in xcode4 organizer

这是基于类似问题的另一个答案,可以在存档中找到,但不会出现在 xcode4 组织者中

I take no credit for this answer, but this together with the suggestions from Ron fixed the problem for me.

我不相信这个答案,但这与 Ron 的建议一起为我解决了问题。

For the "Release" configuration do the following:

对于“发布”配置,请执行以下操作:

Set "Skip Install" to YES on your project

在您的项目中将“跳过安装”设置为“是”

Set "Skip Install" to NO on your application target

在您的应用程序目标上将“跳过安装”设置为 NO

Set "Skip Install" to YES on all static library targets that are included

在包含的所有静态库目标上将“跳过安装”设置为“是”

Choose Product -> Archive from the menu.

从菜单中选择产品 -> 存档。

This also worked for me, and according to the original answer poster, is based on advice from the Apple Dev Forums.

这也对我有用,根据原始答案海报,这是基于 Apple Dev Forums 的建议。

回答by Corin

I had the same problem... I had mistakenly set "Installation Directory" (INSTALL_PATH) to an empty string in my Build Settings. Removing this setting and using the default /Applicationssolved my issue.

我遇到了同样的问题......我INSTALL_PATH在构建设置中错误地将“安装目录”()设置为空字符串。删除此设置并使用默认设置/Applications解决了我的问题。

回答by debo

One more thing to check: Search for the "Installation Directory" in your Build Settings (All) and make sure it's set to "/Applications".

还有一件事要检查:在您的构建设置(全部)中搜索“安装目录”,并确保将其设置为“/应用程序”。

回答by DevCompany

Yes! Finally. I too was stuck on this for 2 days! I should have checked here first!

是的!最后。我也被困在这两天了!我应该先在这里检查一下!

Skip Install ... moved it to NO and it worked!

跳过安装......将其移至 NO 并且它起作用了!

回答by user683896

I had a similar issue where the distribution compiled and signed fine, but never showed up in the Archive tab. Turns out I needed to attach a device to get it to build a "real" iOS build. Once I attached my device, I ran Product -> Archive and it showed up as expected.

我有一个类似的问题,发行版编译和签名正常,但从未出现在存档选项卡中。原来我需要连接一个设备才能让它构建一个“真正的”iOS 版本。连接设备后,我运行 Product -> Archive 并按预期显示。

回答by Vern Jensen

None of the suggestions here worked for me, including setting "Skip Install" to NO... until I set "Installation Directory" to something other than the blank default value. (I used "/Applications" but other values like "/usr/bin" would be fine too.) Then lo and behold, it worked!

这里没有任何建议对我有用,包括将“跳过安装”设置为“否”...直到我将“安装目录”设置为空白默认值以外的其他内容。(我使用了“/Applications”,但其他值,如“/usr/bin”也可以。)然后瞧,它奏效了!

回答by Mandeep Singh

I have facing the same issue in my project. After archiving my project, organizer window in not open. So i had done this. And it will works for me. Hopefully it will helps you.

我在我的项目中遇到了同样的问题。归档我的项目后,组织者窗口未打开。所以我做了这个。它对我有用。希望它会帮助你。

  1. Select your project -> In the build settings switch Skip Install -> Release to NO, for the build settings used for archiving. After that you can archive your project properly.
  1. 选择您的项目 -> 在构建设置中切换 Skip Install -> Release 为 NO,用于归档的构建设置。之后,您可以正确存档您的项目。

Thanks in advance.

提前致谢。

回答by Mike73

Thanks for all the advice. I finally ended up with my archive using the skip install yes for the project and no for the targets. Thank you so much. Compared with others, this only took me about 3 hours, but I wish I would have found this thread earlier (now it's 1.45 am).

感谢所有的建议。我最终使用项目的 skip install yes 和目标的 no 结束了我的存档。非常感谢。与其他人相比,这仅花了我大约 3 个小时,但我希望我能早点找到这个线程(现在是凌晨 1.45)。

Thanks.

谢谢。

回答by user713081

Same problem ! And resolved :)

同样的问题 !并解决:)

I add this into my info.plist file:

我将它添加到我的 info.plist 文件中:

create a new property "Bundle versions string, short" and provide the same version number as for "Bundle version" property. (Thanks to Rahul Choudhary, in his post "XCode 4 Archive Version Unspecified")

创建一个新属性“Bundle versions string, short”并提供与“Bundle version”属性相同的版本号。(感谢 Rahul Choudhary,在他的帖子“XCode 4 Archive Version Unspecified”中)