【问题标题】:Flutter app icon does not change in ios simulator for flutter_launcher_iconsFlutter 应用程序图标在 Flutter_launcher_icons 的 ios 模拟器中没有更改
【发布时间】:2020-09-28 10:27:54
【问题描述】:

我用过

flutter_launcher_icons:^0.7.4 - https://alligator.io/flutter/app-icons/

并在我的 mac 中运行该命令。

重新启动应用程序后,我注意到应用程序图标没有改变。

但如果在 xcode 中打开并部署到设备/应用商店,应用图标会更新。

为什么IOS模拟器不显示更新的应用图标?

【问题讨论】:

    标签: ios flutter simulator appicon


    【解决方案1】:

    尝试使用 XCode 检查图标映射。文件Contents.json 中可能有问题。调查更多:

    1. ios/Runner.xcworkspace 或项目ios/Runner.xcodeproj 上打开您的工作区。
    2. 在 XCode 中打开 Runner/Assets.xcassets,你会发现 this
    3. 检查警告(如果出现)。要修复映射问题,还要检查您的 Flutter 项目基础文件夹中的 ios/Runner/Assets.xcassets/Contents.json 中的文件,并查看映射是否正确。
    4. 不要忘记重置模拟器的缓存,这样新图标也会出现在任务菜单中。

    【讨论】:

      猜你喜欢
      • 2015-08-06
      • 2011-12-08
      • 2015-09-01
      • 2018-02-24
      • 2020-08-25
      • 1970-01-01
      • 2017-08-16
      • 2020-11-22
      • 2023-01-03
      相关资源
      最近更新 更多