Flutter踩坑之Unable to find a specification for `FMDB (~> 2.7.2)` depended upon by `sqflite`

装了Xcode,起了模拟器,运行项目,报错如下:

[!] Unable to find a specification for `FMDB (~> 2.7.2)` depended upon by `sqflite`

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

原因:Profile 在私有库后面配置了source,没有考虑到私有库A依赖的私有库B,而私有库B依赖FMDB,在设置的source中找不到FMDB。
解决办法:
在原来source后面追加:

source 'https://github.com/CocoaPods/Specs.git'

参考文章:http://www.mengyueping.com/2018/08/16/iOS_CocoaPods_03/

发布了19 篇原创文章 · 获赞 1 · 访问量 7659

猜你喜欢

转载自blog.csdn.net/jwg1988/article/details/103878956