热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

是什么原因导致ios11iPad最近的应用程序dock图标变灰?-WhatcausesiOS11iPadrecentappsdockicontobegrayedout?

IhaveanappthatIhaveinheritedtomaintain.我有一个我“继承”了的应用程序要维护。SincetheiOS11update,on

I have an app that I have "inherited" to maintain.

我有一个我“继承”了的应用程序要维护。

Since the iOS 11 update, on two separate iPads (iPad Air and iPad 5th gen), I have a problem. Both devices are running iOS 11.0.2.

自从iOS 11升级以来,我在两个独立的iPad (iPad Air和iPad 5世代)上遇到了一个问题。这两款设备都运行iOS 11.0.2。

When the app is installed and launched for the first time, the app icon shows up in the "Recent apps" section of the dock, but the icon is grayed out and cannot be tapped (it can be dragged, but long-pressing does nothing). For any subsequent app launches the dock icon remains unchanged, unless any process occurs that causes the app icon to go away from the "Recent apps" section (opening a few other apps or dragging the icon to the left side of the dock) then the icon is no longer grayed out and it becomes tappable. It looks the same as if the icon has been tapped, but it is permanently in that pressed state (it does not trigger a long press event).

当第一次安装并启动app时,app图标会出现在dock的“Recent apps”部分,但是图标是灰色的,不能点击(可以拖拽,长按什么都不做)。对于任何后续应用程序启动dock图标不变,除非发生任何过程引起的应用程序图标消失从最近的“应用程序”部分(打开其他一些应用程序或拖动图标左边的码头)然后图标不再是灰色的,它变成tappable。它看起来就像图标被点击过一样,但它永远处于按下状态(它不会触发长时间的按下事件)。

The problem occurs when the app is installed from the App Store, XCode (Debug session) or Crashlytics. It re-occurs after uninstalling the app and re-installing, even if the dock icon was "fixed" during the previous installation.

当应用程序从应用程序商店、XCode (Debug session)或Crashlytics安装时,就会出现问题。它在卸载app并重新安装后重新发生,即使在之前的安装过程中dock图标是“修复”的。

The home screen app icon is fine (not gray and can be tapped).

主屏幕应用程序图标是好的(不是灰色的,可以点击)。

My app icon grey

What could be the cause of the problem? Or is it an iOS 11 bug?

问题的原因是什么?或者是ios11漏洞?

Edit 1: This problem does not occur in the iOS11.0 simulator.

编辑1:这个问题不会在iOS11.0模拟器中出现。

Edit 2: Updating the iPad (5th gen) to iOS 11.0.3 did not fix the issue.

编辑2:将iPad(第5代)升级到iOS 11.0.3并没有解决问题。

Edit 3: Rebooting the device (either between uninstall and reinstall, or while the icon is gray) fixes the icon. This leads me to believe that there are possibly some files left over or something is still happening after deleting/uninstalling the app and this cache or whatever is only cleared on reboot. Waiting 10 minutes after deleting the app has no effect.

编辑3:重新引导设备(在卸载和重新安装之间,或者当图标是灰色的时候)修复图标。这让我相信,在删除/卸载应用程序和这个缓存或其他仅在重新启动时被清除的东西之后,可能还有一些文件遗留下来,或者仍然有一些事情正在发生。删除应用程序后等待10分钟没有效果。

Edit 4: As pointed out by Marko in the comments, "The greyed out icon does work to switch back to the app when dragging it to the screen, but not when tapping on it."

编辑4:正如Marko在评论中指出的那样,“当你把它拖到屏幕上的时候,那个灰色的图标会切换回应用程序,但不是在点击它的时候。”

This seems to be related to xCode, and possibly having an orphaned app icon. I discovered that if I install-uninstall-reinstall the App Store version of the app it does not have this issue. This issue only occurs when installing (debugging) from xCode or Crashlytics/Testflight. If the xCode version was installed-uninstalled then the App Store version is also affected.

这似乎与xCode有关,可能还有一个孤立的应用程序图标。我发现,如果我安装-卸载-重新安装应用商店版本的应用,它没有这个问题。这个问题只发生在从xCode或Crashlytics/Testflight安装(调试)时。如果xCode版本被安装-卸载,那么App Store版本也会受到影响。

Edit 5: I noticed that if the icon is not gray and I delete the (debug version of the) app, just before the icon disappears from the recent apps dock it turns gray and then is removed.

编辑5:我注意到,如果图标不是灰色的,我删除了(调试版的)应用程序,就在图标消失在最近的应用程序dock之前,它会变成灰色,然后被删除。

Update: I have replicated the bug with the App Store version of my app, but I have also been able to replicate the error with the Google Play Music app. As such I think that this is not a problem only with my app (and a few other devs), but it appears to be an iOS 11 bug. I am going to answer my own question that this is an iOS 11 bug.

更新:我有复制App Store版本的错误我的应用程序,但是我也能够与谷歌播放音乐应用程序复制错误。因此我认为这并不是一个问题,只有我的应用程序(和其他一些开发者),但它似乎是一个iOS 11 bug。我将回答我自己的问题,这是一个ios11的错误。

Google Play Music icon also grey

2 个解决方案

#1


2  

After some more testing, I have come to the conclusion that this is an iOS11 bug. I was able to replicate the bug with my own app and another app that is live on the App Store (Google Play Music).

经过更多的测试,我得出结论,这是一个iOS11 bug。我可以用我自己的应用程序和应用程序商店(谷歌播放音乐)来复制这个bug。

App icons grey in dock

This appears to happen when uninstalling an app that is present in the "Recent Apps" section of the dock. Upon reinstallation and opening the app, the icon is grey.

当卸载位于dock“近期应用”部分的应用程序时,就会出现这种情况。重新安装并打开应用程序时,图标为灰色。

#2


0  

I found the same issues in my old projects and debug it using several approaches. I've found that for me Fabric/Crashlytics framework - that is what affects icon in dock.

我在以前的项目中发现了同样的问题,并使用几种方法对其进行调试。我发现,对我来说,面料/褶皱框架——这就是dock中的图标。

In short: just comment: [Fabric with:@[[Crashlytics class]]]; line in your AppDelegate and icon in dock will be tappable again. I suppose for AppStore builds that won't be an issue. Also I think Fabric team will fix this issue for future releases.

简而言之:只评论:[面料与:@[[Crashlytics类]]];线在你的AppDelegate和图标在dock将会再次被tappable。我认为对于AppStore构建来说,这不会是个问题。而且我认为Fabric团队将在以后的版本中修复这个问题。


推荐阅读
  • 本文探讨了如何优化和正确配置Kafka Streams应用程序以确保准确的状态存储查询。通过调整配置参数和代码逻辑,可以有效解决数据不一致的问题。 ... [详细]
  • 本文介绍了如何使用 Spring Boot DevTools 实现应用程序在开发过程中自动重启。这一特性显著提高了开发效率,特别是在集成开发环境(IDE)中工作时,能够提供快速的反馈循环。默认情况下,DevTools 会监控类路径上的文件变化,并根据需要触发应用重启。 ... [详细]
  • 本文将介绍如何使用 Go 语言编写和运行一个简单的“Hello, World!”程序。内容涵盖开发环境配置、代码结构解析及执行步骤。 ... [详细]
  • 1:有如下一段程序:packagea.b.c;publicclassTest{privatestaticinti0;publicintgetNext(){return ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • C++实现经典排序算法
    本文详细介绍了七种经典的排序算法及其性能分析。每种算法的平均、最坏和最好情况的时间复杂度、辅助空间需求以及稳定性都被列出,帮助读者全面了解这些排序方法的特点。 ... [详细]
  • 本文详细介绍了 Dockerfile 的编写方法及其在网络配置中的应用,涵盖基础指令、镜像构建与发布流程,并深入探讨了 Docker 的默认网络、容器互联及自定义网络的实现。 ... [详细]
  • MQTT技术周报:硬件连接与协议解析
    本周开发笔记重点介绍了在新项目中使用MQTT协议进行硬件连接的技术细节,涵盖其特性、原理及实现步骤。 ... [详细]
  • 深入解析 Apache Shiro 安全框架架构
    本文详细介绍了 Apache Shiro,一个强大且灵活的开源安全框架。Shiro 专注于简化身份验证、授权、会话管理和加密等复杂的安全操作,使开发者能够更轻松地保护应用程序。其核心目标是提供易于使用和理解的API,同时确保高度的安全性和灵活性。 ... [详细]
  • 深入解析 Spring Security 用户认证机制
    本文将详细介绍 Spring Security 中用户登录认证的核心流程,重点分析 AbstractAuthenticationProcessingFilter 和 AuthenticationManager 的工作原理。通过理解这些组件的实现,读者可以更好地掌握 Spring Security 的认证机制。 ... [详细]
  • Python + Pytest 接口自动化测试中 Token 关联登录的实现方法
    本文将深入探讨 Python 和 Pytest 在接口自动化测试中如何实现 Token 关联登录,内容详尽、逻辑清晰,旨在帮助读者掌握这一关键技能。 ... [详细]
  • 本文探讨了如何通过一系列技术手段提升Spring Boot项目的并发处理能力,解决生产环境中因慢请求导致的系统性能下降问题。 ... [详细]
  • iOS 开发技巧:TabBarController 自定义与本地通知设置
    本文介绍了如何在 iOS 中自定义 TabBarController 的背景颜色和选中项的颜色,以及如何使用本地通知设置应用程序图标上的提醒个数。通过这些技巧,可以提升应用的用户体验。 ... [详细]
  • 深入浅出TensorFlow数据读写机制
    本文详细介绍TensorFlow中的数据读写操作,包括TFRecord文件的创建与读取,以及数据集(dataset)的相关概念和使用方法。 ... [详细]
  • 力扣93:复原IP地址问题解析(Golang实现)
    本文探讨了力扣平台上的第93号问题——复原IP地址。该问题要求从给定的纯数字字符串中,通过添加分隔符‘.’来构建所有可能的有效IP地址。有效IP地址由四个介于0至255之间的整数组成,不允许出现前导零。 ... [详细]
author-avatar
横刀2502934567
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有