作者:横刀2502934567 | 来源:互联网 | 2023-05-17 01:14
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).
主屏幕应用程序图标是好的(不是灰色的,可以点击)。
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的错误。
2 个解决方案