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="(readlink "{source}")" 加上-f

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容