Xcode 7.2 成功的档案不会显示在管理器中,但会显示在关于派生数据文件夹的档案文件夹中

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

Xcode 7.2 successful archives will not show in organizer, but will show in archives folder about derived data folder

xcodeswiftcocoapodsxcode7testflight

提问by kareem

I am using Cocoapods 0.39.0and Xcode 7.2, I have a project that archives successfully but does not populate in organizer. When I tested my podfile in a blank project the archive showed up in the Organizerjust fine.

我正在使用Cocoapods 0.39.0Xcode 7.2,我有一个成功归档但未填充到管理器中的项目。当我在一个空白项目中测试我的 podfile 时,存档出现在Organizer就好了。

While trying to troubleshoot this I found that there was an Archives folder above Derived Data. There I actually found all the .xcarchive files of the project that won't show up in the Organizer.

在尝试解决此问题时,我发现派生数据上方有一个 Archives 文件夹。在那里,我实际上找到了项目的所有 .xcarchive 文件,这些文件不会出现在 Organizer 中。

Archive Folder Above Derived Data

派生数据上方的存档文件夹

When clicking on the file details, I also noticed that the working Archive had a size (228.3 MB for the test project) but my main project I want working has a size of 0 bytes.

单击文件详细信息时,我还注意到工作存档的大小(测试项目为 228.3 MB),但我想要工作的主项目的大小为 0 字节。

Test ProjectMain Project

测试项目主要项目

回答by kareem

Figured it out.

弄清楚了。

  1. Searched Installation Directoryin Build Settings
  2. Removed @executable_path/../Frameworksas the value for Installation Directory
  3. Typed the following for the Installation Directory $(LOCAL_APPS_DIR)
  1. 搜索Installation DirectoryBuild Settings
  2. 删除了@executable_path/../Frameworks作为安装目录的值
  3. 为安装目录键入以下内容 $(LOCAL_APPS_DIR)

Reference: "Xcode successfully archived my application, but the Archives Organizer does not list my archive" sectionhttps://developer.apple.com/library/ios/technotes/tn2215/_index.html

参考:“Xcode 成功归档了我的应用程序,但档案管理器未列出我的档案”部分https://developer.apple.com/library/ios/technotes/tn2215/_index.html

回答by Boris Gafurov

In XCode Project\Targets\Build Settings make sure

在 XCode Project\Targets\Build Settings 中确保

Skip Install = NO

跳过安装 = 否

for your Archive scheme, if you created one, or Release scheme

对于您的存档方案,如果您创建了一个,或发布方案

回答by Nikolay Suvandzhiev

In my case (Xcode 8.3.3), the Installation Directorywas pointing to /Applicationswhich seemed correct, so that wasn't the issue. What worked was:
1. restart Xcode
2. Product ? Clean
3. delete the whole 'Derived Data' folder (to see where it is: Xcode ? Preferences... ? Locations ? Derived Data)
4. Product ? Clean

在我的情况下(Xcode 8.3.3),Installation Directory指向/Applications哪个似乎是正确的,所以这不是问题。有效的是:
1. 重新启动 Xcode
2. 产品?清理
3. 删除整个“派生数据”文件夹(查看它在哪里:Xcode?首选项...?位置?派生数据)
4. 产品?干净的

回答by ggDeGreat

Easiest step that worked for me.

对我有用的最简单的步骤。

  1. Delete folder Derived Data(to see where it is: Xcode ? Preferences... ? Locations ? Derived Data)
  2. Generate the archive, select the Xcode ? Product ? Archive
  3. Once the process is complete the archive will be displayed in the Archivescreen of the Organizerdialog.
  1. 删除文件夹Derived Data(查看它在哪里:Xcode?Preferences...?Locations?Derived Data)
  2. 生成存档,选择 Xcode ? 产品 ?档案
  3. 该过程完成后,存档将显示在对话框的Archive屏幕中Organizer

回答by Vijay Singh Chouhan

1. Clean
2. Build

Worked for me.

对我来说有效。

回答by Alix

I had the same problem when I created debug build pointing to our QA environment. Debug build was just Zero byte. As @kareem mention above I figure that release/distributio build are having path as /Applications.

当我创建指向我们的 QA 环境的调试版本时,我遇到了同样的问题。调试版本只是零字节。正如@kareem 上面提到的,我认为 release/distributio 构建的路径为/Applications

I just duplicated for my debug build and bingo !!! Yes you can add /Application instead of current value which was '@executable_path/../Frameworks'

我只是为我的调试版本和宾果游戏复制了 !!! 是的,您可以添加 /Application 而不是当前值,即“ @executable_path/../Frameworks

This way if you archive your debug build, you will have actual archive just like release build

这样,如果您存档调试版本,您将拥有实际存档,就像发布版本一样

All credit goes to kareem. I just try to enhanced by adding another prespective.

所有的功劳都归功于卡里姆。我只是尝试通过添加另一个预测来增强。