Flutter ios编译填坑

  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.

  1. rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]

Command PhaseScriptExecution failed with a nonzero exit code

Pods-Runner-frameworks.sh中 source="{source}")" 加上-f

你可能感兴趣的:(Flutter ios编译填坑)