Flutter ios编译填坑

2022-02-23  本文已影响0人  Broncho
  1. Flutter/ fatal error: 'Flutter/Flutter.h' file not found

-> flutter create . -i objc
-> flutter pub cache repair
-> cd ios
-> pod init
-> pod install

  1. This copy of libswiftCore.dylib requires an OS version prior to 12.2.0
    https://www.jianshu.com/p/00991deee746
    Got it fixed in our ObjectiveC-only project by adding empty Swift file. Don't remove it, just keep it there forever!

  2. Can't load Kernel binary: Invalid kernel binary format version. No active package webdev

Delete the bin/cache directory in your Flutter installation directory, then run flutter doctor.

上一篇下一篇

猜你喜欢

热点阅读