问题 1:
[!] Invalid `Podfile` file: undefined method `script_phase' for #<Pod::Podfile:0x007f97d2341400>.
# from /Users/xxx/PPP/XXXXXX/Podfile:18
# -------------------------------------------
# target 'XXXXXX' do
> install_all_flutter_pods(flutter_application_path)
解决方法:
cd 到你的 fluttter 项目中
rm ios/Podfile
flutter build ios