ios13.3.1 真机调试报错 dyld: Library not loaded: @rpath/Flutter.framework/Flutter

今天在学习flutter时随手建了个入门项目,在安卓真机,ios13.3.1模拟器上运行没有什么问题,当运行在我ios版本为13.3.1的iPhone 11上时报

dyld: Library not loaded: @rpath/Flutter.framework/Flutter

  Referenced from: /private/var/containers/Bundle/Application/97C6EBE0-8C88-48D6-9370-58AB8F2EE273/Runner.app/Runner

  Reason: no suitable image found.  Did find:

/private/var/containers/Bundle/Application/97C6EBE0-8C88-48D6-9370-58AB8F2EE273/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/97C6EBE0-8C88-48D6-9370-58AB8F2EE273/Runner.app/Frameworks/Flutter.framework/Flutter'

 

/private/var/containers/Bundle/Application/97C6EBE0-8C88-48D6-9370-58AB8F2EE273/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=25

(lldb) 

我的环境如下:

iOS 13.3.1
Flutter (Channel stable, v1.12.13+hotfix.7)
Xcode 11.3.1
MacOS Catalina 10.15.3

百度了下没找到答案,谷歌了下,看了几篇老外的帖子,好像找到问题了,貌似是最新ios13.3.1的问题,有几种解决办法可以试试:

1.建议运行在13.3或以下设备,

2.建议找个非个人证书试试

3.在13.3.1模拟器上运行

期待问题修复.

参考链接:https://github.com/flutter/flutter/issues/49504

你可能感兴趣的:(flutter,bug记录)