Flutter 遇到的问题

flutter升级到1.9.1 后 ios打包失败 Flutter.framework: Permission denied

  •  这是flutter官方的一个bug,查资料说flutter升级到1.10就好了
  • 不升级flutter的情况下,可以改Flutter SDK 的一个文件,flutter/packages/flutter_tools/bin/xcode_backend.sh
  •  
  • 144行
  • RunCommand find "${derived_dir}/engine/Flutter.framework" -type f -exec chmod a-w "{}" \;
  • =>
  • RunCommand find "${derived_dir}/engine/Flutter.framework" -type f -iname '.h' -exec chmod a-w "{}" \;

Studio 强制退出时,因为缓存原因运行不了,清除缓存

  • rm /opt/flutter/bin/cache/lockfile
  • Flutter create -t module xxx

你可能感兴趣的:(Flutter 遇到的问题)