flutter报错: [!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` becaus
- 解决:
- 现在版本更新了,应该大部分9.0
platform :ios, '9.0'
错误:[!] CocoaPods could not find compatible versions for pod "xxx":In snapshot (Podfile.lock):
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "SDWebImage":
In snapshot (Podfile.lock):
SDWebImage (= 5.1.0)
In Podfile:
SDWebImage
None of your spec sources contain a spec satisfying the dependencies: `SDWebImage, SDWebImage (= 5.1.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
解决办法:.xcworkspace和Podfile.lock文件删除,重新pod install。
错误:CocoaPods 【warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777】
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-
darwin19/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
解决
终端执行命令
sudo chmod go-w /usr/local/bin
错误:Error running pod install
解决方法:终端 进入iOS项目,执行命令:pod install
错误:运行pod install,[!] The 'Pods-xxx' target has frameworks with conflicting names: amapfoundationkit.framework and amaplocationkit.framework.
解决方法:依赖包冲突了,比如Flutter开发加载iOS的依赖包,在实现定位功能中,amap_location_fluttify 插件和amap_location插件产生冲突了,根据自身条件删除其中一个。