真机运行报错

来源:8-4 轮播图Banner功能开发【使用轮子】

慕丝0054743

2020-01-02

老师您好,在iphone真机上运行会产生如下错误
dyld: Library not loaded: @rpath/Flutter.framework/Flutter
Referenced from: /private/var/containers/Bundle/Application/829E7C20-18DA-4190-910F-80EF40A42784/Runner.app/Runner
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/829E7C20-18DA-4190-910F-80EF40A42784/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for ‘/private/var/containers/Bundle/Application/829E7C20-18DA-4190-910F-80EF40A42784/Runner.app/Frameworks/Flutter.framework/Flutter’

写回答

1回答

CrazyCodeBoy

2020-01-03

  1. 如果APP已经安装,将已经安装的APP卸载

  2. 用xcode打开项目然后clean下在运行;

  3. 如果还是有问题可以使用下flutter clean清一下缓存,再试。

0
0

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3270 问题

查看课程