flutter报错如下,可能是因为安装了多个cocoapods
.
lib/main.dart:1
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxx
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
Exception: CocoaPods not installed or not in valid state.
Exited (sigterm)
用flutter run
又可以跑起来
解决方法:
终端输入 open /Applications/Android\ Studio.app
然后关闭vscode重新打开试试就可以了。
导致这个问题的原因可能是Android Studio的配置问题,或者是有三种可能的资源路径,你可以将路径放在如下配置中
- ~/.profile
- ~/.zshrc
- ~/.bashrc
因此,当你的配置路径不在上面这三种配置文件中时,就会发生这种情况。无法从启动板的打开链接访问它。无论何时打开终端会话,所有3条路径都会自动同步。这就是区别。