最新版本未出现在 Xcode Crashes Organizer 中

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

Latest release not appearing in Xcode Crashes Organizer

xcodecrash-reports

提问by mkirk

I released a new version 6 days ago. I see some crashes in iTunesConnect analytics, but none in the crashes organizer, nor does my release even appear in the "version" dropdown within the crashes organizer.

我 6 天前发布了一个新版本。我在 iTunesConnect 分析中看到了一些崩溃,但在崩溃管理器中没有,我的发布甚至没有出现在崩溃管理器的“版本”下拉列表中。

Normally it takes a day or two after a release for crash reports to make their way into the Xcode Crashes organizer, and anecdotally I've seen the crashes appear in the Xcode Crashes organizer about the same time as in the iTunesConnect analytics website.

通常,崩溃报告发布后需要一两天时间才能进入 Xcode Crashes 管理器,有趣的是,我已经看到崩溃出现在 Xcode Crashes 管理器中的时间与 iTunesConnect 分析网站的时间差不多。

Interestingly, the previous versions still show in the "version" dropdown and I can see reports continue to trickle in for them. There is a steep decline in crash reports for that previous version, presumably as most folks have moved to the latest version.

有趣的是,以前的版本仍然显示在“版本”下拉列表中,我可以看到报告继续为它们提供。之前版本的崩溃报告急剧下降,大概是因为大多数人已经转移到最新版本。

On a new machine, with a fresh XCode install (but linked to the same developer account) I see the same behavior. Maybe it's a problem with my developer account?

在一台新机器上,使用全新的 XCode 安装(但链接到同一个开发人员帐户),我看到了相同的行为。可能是我的开发者账号有问题?

Update 2016.09.01: Two months later, new releases are still not showing up in the releases dropdown automatically. The workaround posted below to manually add them has been working great, but hopefully I don't have to do it forever. I have to assume this is a problem with my local setup as this can't be happening to everyone. Let me know if you figure out a long term fix.

2016.09.01 更新:两个月后,新版本仍未自动显示在版本下拉列表中。下面发布的手动添加它们的解决方法一直很有效,但希望我不必永远这样做。我必须假设这是我本地设置的问题,因为这不可能发生在每个人身上。如果您找到长期解决方案,请告诉我。

Update 2016.10.13: The work aroundisn't working for my most recent release. I again see crashes in ITC, but after manually adding an entry for the release in Info.json, I see "No crash information is available for this release."

2016.10.13 更新解决方法不适用于我的最新版本。我再次在 ITC 中看到崩溃,但在 Info.json 中手动添加发布条目后,我看到“此版本没有可用的崩溃信息”。

Update 2016.10.15: I guess the work around is continuing to work, the crash reports were just delayed by an extra48 hours.

更新二○一六年十月一十五日:我想各地将继续努力工作,崩溃报告只是由延迟额外的48小时。

Update 2016.1.20: At some point, (maybe around mid december, XCode 8.2?), I started to see new releases appear automatically again, and no longer have the joy of manually editing my XCode config data every time I push a build. Other than updating XCode, I can't think of any way I might have "fixed" it.

2016.1.20 更新:在某个时候(可能在 12 月中旬左右,XCode 8.2?),我开始看到新版本再次自动出现,并且不再有每次推送构建时手动编辑我的 XCode 配置数据的乐趣。除了更新 XCode 之外,我想不出我可以“修复”它的任何方式。

回答by mkirk

It's likely a bug with Xcode/ITC services. I filed a radar (#27277793) yesterday and was on ITC tech support today. If you're having this issue pleasereport it to Appleand reference the existing radar (#27277793) so Apple can recognize we're having the same problem and prioritize a fix.

这可能是 Xcode/ITC 服务的错​​误。我昨天提交了一份雷达 (#27277793),今天得到了 ITC 技术支持。如果您遇到此问题,请将其报告给 Apple并参考现有的雷达 (#27277793),以便 Apple 能够识别出我们遇到了同样的问题并优先进行修复。

A workaround to get the crash reports for my latest release was to manually add a new entry in the crash organizers Info.json.

获取最新版本的崩溃报告的一种解决方法是在崩溃组织者 Info.json 中手动添加一个新条目。

In: $HOME/Library/Developer/Xcode/Products/<bundle.id>edit the Info.json and add a new entry to the beginning of the "productVersions" array based on the existing entries, but change the build number to whatever build the crash reports are for.

在:$HOME/Library/Developer/Xcode/Products/<bundle.id>编辑 Info.json 并根据现有条目在“productVersions”数组的开头添加一个新条目,但将内部版本号更改为崩溃报告所针对的任何版本。

You also mustupdate the appStoreStatus field depending on whether your app is in TestFlight or in the AppStore. appStoreStatus: 1for TestFlight and appStoreStatus: 3for AppStore.

您还必须根据您的应用程序是在 TestFlight 还是在 AppStore 中更新 appStoreStatus 字段。appStoreStatus: 1适用于 TestFlight 和appStoreStatus: 3AppStore。

After relaunching Xcode and going to the crashes organizer I watched as the last 6 days of crash reports came in.

重新启动 Xcode 并前往崩溃管理器后,我看到了过去 6 天的崩溃报告。

Yay for human readable configuration data!

是的,人类可读的配置数据!

回答by jmkakku

Had similar issue where Xcode crash reports stopped updating after we increased our deployment target iOS version. Fix was to edit Info.json like mentioned above and remove all unsupported OS versions from "supportedOSVersions" array of latest build that was appearing in "productVersions" array.

在我们增加部署目标 iOS 版本后,Xcode 崩溃报告停止更新的类似问题。修复是像上面提到的那样编辑 Info.json 并从“productVersions”数组中出现的最新版本的“supportedOSVersions”数组中删除所有不受支持的操作系统版本。

回答by Steven Haggerty

Remove the entire $HOME/Library/Developer/Xcode/Products/ directory. Quit and restart Xcode and then run Organizer. They all come through after that.

删除整个 $HOME/Library/Developer/Xcode/Products/ 目录。退出并重新启动 Xcode,然后运行 ​​Organizer。之后他们都挺过来了。

回答by Sazzad Hissain Khan

Please follow below steps,

请按照以下步骤操作,

  1. Remove bundle from Xcode products using,

    rm -rf ~/Library/Developer/Xcode/Products/com.yourapp.bunlde

  2. Restart you Xcode and open Organizer

  3. Make sure that itunesconnect sites are accessible
  1. 使用以下命令从 Xcode 产品中删除捆绑包,

    rm -rf ~/Library/Developer/Xcode/Products/com.yourapp.bunlde

  2. 重启你的 Xcode 并打开 Organizer

  3. 确保可以访问 iTunesconnect 站点

Xcode->Organizer is supposed to download all crashlogs from beginning. Hope that helps.

Xcode->Organizer 应该从一开始就下载所有崩溃日志。希望有帮助。

回答by Alyoshak

This worked for me when none of the above answers did.

当上述答案都没有时,这对我有用。

Find the Info.json file as described above in mkirk's answer. Make a copy as a backup. In the productVersions section remove any unneeded versions. As you can see below, "productVersions" is a json array, and it will contain a series of json objects, each of which represents one of your versions. I desperately needed crash reports for a recent release to the app store and after deleting allversions preceding that (below it) and restarting Xcode, voila! the Organizer suddenly began showing all my crash reports.

在 mkirk 的回答中找到上述的 Info.json 文件。制作一份副本作为备份。在 productVersions 部分删除所有不需要的版本。正如您在下面看到的,“productVersions”是一个 json 数组,它将包含一系列 json 对象,每个对象代表您的一个版本。我非常需要应用商店最近发布的崩溃报告,并且在删除之前(在它下面)的所有版本并重新启动 Xcode 之后,瞧!组织者突然开始显示我所有的崩溃报告。

"productVersions" : [
    {
      "version" : "4.0.45",
      "productType" : 1,
      ...