美文网首页
Your Xcode project requires migr

Your Xcode project requires migr

作者: ChaosHeart | 来源:发表于2020-11-24 11:38 被阅读0次

报错:

截屏2020-11-24 08.42.47.png

解决:

  1. 删除App.frameworkFlutter.framework和其他,最后留这些
    截屏2020-11-24 11.16.18.png

2.打开Runner.xcodeproj,并删除删除App.frameworkFlutter.framework

截屏2020-11-24 11.32.54.png
  1. 查看Build Phases > Link Binary With Libraries 和 Build Phases > Embed Frameworks


    截屏2020-11-24 11.34.27.png
  2. 在Build Phases > Thin Binary中添加以下命令

    /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
    /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin
    
截屏2020-11-24 11.35.22.png
  1. 在Build Settings > Other Linker Flags里添加 $(inherited) -framework Flutter
$(inherited) -framework Flutter
截屏2020-11-24 11.35.27.png

5.在flutter终端重新执行以下命令,重新构建iOS本地项目

flutter clean
flutter build ios --release

参考:
https://flutter.dev/docs/development/ios-project-migration

相关文章

网友评论

      本文标题:Your Xcode project requires migr

      本文链接:https://www.haomeiwen.com/subject/yjriiktx.html