flutter 常见报错 command phasescriptexecution failed with a nonzero exit code

混合开发的项目运行时候报错

command phasescriptexecution failed with a nonzero exit code

多人配合容易出现这个问题 pod install 会提示 

Invalid `Podfile` file: cannot load such file -- /Users/----

解决办法:

1、flutte_module目录执行:flutter clean

2、flutter_module目录执行:flutter pub upgrade

3、宿主项目中,直接pod install,(有可能会在pod之前执行pod repo update等)。

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

推荐阅读更多精彩内容