1、flutter Warning: Podfile is out of date
Warning: Podfile is out of date This can cause a mismatched version of Flutter to be embedded in your app, which may result in App Store submission rejection or crashes. If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/24641 for instructions. To regenerate the Podfile, run: rm iOS/Podfile
rm ios/Podfile
flutter run
2、Automatically assigning platform iOS
with version 8.0
on target Runner
或者Automatically assigning platform iOS
with version 12.0
on target Runner
because no platform was specified. Please specify a platform for this target in your Podfile
解决:只要修改ios目录下podfile 第二行 去掉#号
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
原因是:没有指定iOS版本。
3、 'AMapFoundation' uses the unencrypted 'http' protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts. Otherwise, please reach out to the library author to notify them of this security issue.
类似的问题
解决方法:
登录https://pub.dev/packages寻找相关最新版本更新一下。
4、[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `each_child' for #<Dir:0x00007f8415636e38>
Did you mean? each_slice
解决办法:升级ruby
#升级
rvm install 2.6.0
#设置
rvm --default use 2.6.0
#重新更新
sudo gem install cocoapods --pre
#重新执行
rm ios/Podfile
flutter run
网友评论