Flutter 踩坑笔记

573 阅读1分钟
  1. ios 打包问题
  • 确认flutter环境和dart环境配置完成
  • flutter create flutter_demo 创建 demo
  • flutter_demo -> ios -> Runner.xcodeproj -> 打开xcode -> 打包

问题:

Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources"

解决方法:

  1. Launch iOS application from Runner.Workspace
  2. Go to build phase --> Thin Binary
  3. Comment the shell script line.
  4. Run the app (it works, but app size grows to 161 MB)
  5. Now again uncomment same line in step 3. App builds and runs and app size shrinks to (97 MB)