直接使用Xcode工具打开Flutter项目ios工程运行报错如下

diff: ~/Documents/DeveloperData/MyFlutterDemo/ios/Pods/Manifest.lock: No such file or directory

error: The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update your CocoaPods installation.

分析原因:这是直接使用AndroidStudio运行ios端端时的pod install失败失败原因可能网络太差。

解决方法1:先重新使用AndroidStudio运行ios端直到成功,再直接使用Xcode工具打开运行

解决方法2:先打开系统终端并且依次运行下列两个命令执行成功之后再运行

$ cd ~/Documents/DeveloperData/MyFlutterDemo/ios

$ pod install

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注