Flutter开发问题记录

1. Q:Mac电脑通过AndroidStudio运行软件到iphone报错

 automatically assigning platform `iOS` with version `10.0` on target `Runner` because no platform was specified. 

A:项目中ios目录下,Podfile文件第2行 platform :ios, ‘11.0’,取消注释

2. Q:Mac电脑通过AndroidStudio运行软件到iphone报错

 CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side

A:第一步终端运行 gem list(类似pip list)查看是否安装了cocoapods,如果没安装那么安装即可。如果发现已经安装,那么关闭AndroidStudio,通过open /Applications/Android\ Studio.app来打开AndroidStudio, 重新编译即可。
详情参考博客:android studio flutter 彻底解决 CocoaPods not installed or not in valid state

你可能感兴趣的:(flutter)