使用标准基座或者自定义基座运行至模拟器,编译UTS插件提示如下错误:
18:51:31.079 Analyzing dependencies
18:51:31.079 [!] CocoaPods could not find compatible versions for pod "HXPhotoPicker":
18:51:31.079 In Podfile:
18:51:31.079 HXPhotoPicker (= 5.0.4)
18:51:31.079 Specs satisfying the `HXPhotoPicker (= 5.0.4)` dependency were found, but they required a higher minimum deployment target.
18:51:31.079 找不到指定的依赖
实际上HXPhotoPicker的最新版本5.0.4在国内镜像中是存在的。
-> HXPhotoPicker (5.0.4)
照片/视频选择器 - 支持LivePhoto、GIF图片选择、自定义编辑照片/视频、3DTouch预览、浏览网络图片/网络视频 功能 - Imitation weibo photo/image picker - support for LivePhoto, GIF image
selection, 3DTouch preview, browse the web image function
pod 'HXPhotoPicker', '~> 5.0.4'
- Homepage: https://github.com/SilenceLove/HXPhotoPicker
- Source: https://github.com/SilenceLove/HXPhotoPicker.git
- Versions: 5.0.4, 5.0.3, 5.0.2, 5.0.1, 5.0.0.2, 5.0.0.1, 5.0.0, 4.2.5, 4.2.4, 4.2.3.2, 4.2.3.1, 4.2.3, 4.2.2, 4.2.1, 4.2.0.3, 4.2.0.2, 4.2.0.1,
4.2.0, 4.1.9.1, 4.1.9, 4.1.8.1, 4.1.8, 4.1.7, 4.1.6, 4.1.5, 4.1.4, 4.1.3, 4.1.2, 4.1.1.1, 4.1.1, 4.1.0, 4.0.9, 4.0.8, 4.0.7, 4.0.6.1, 4.0.6,
4.0.5.1, 4.0.5, 4.0.4, 4.0.3, 4.0.2, 4.0.1, 4.0.0, 3.3.2, 3.3.1, 3.3.0, 3.2.9, 3.2.8, 3.2.7, 3.2.6, 3.2.5, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0,
3.1.9, 3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.9, 3.0.8, 3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 2.4.5,
2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.8, 2.3.7, 2.3.6, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.9, 2.2.8, 2.2.7, 2.2.6, 2.2.5, 2.2.3, 2.2.2,
2.2.1, 2.2.0, 2.1.9, 2.1.8, 2.1.7, 2.1.6 [master repo]
- Subspecs:
- HXPhotoPicker/Core (5.0.4)
- HXPhotoPicker/Resources (5.0.4)
- HXPhotoPicker/Picker (5.0.4)
- HXPhotoPicker/Editor (5.0.4)
- HXPhotoPicker/EditorView (5.0.4)
- HXPhotoPicker/Camera (5.0.4)
- HXPhotoPicker/Camera/Lite (5.0.4)
- HXPhotoPicker/Camera/Location (5.0.4)
- HXPhotoPicker/NoLocation (5.0.4)
- HXPhotoPicker/GIFImageView (5.0.4)
- HXPhotoPicker/KFImageView (5.0.4)
- HXPhotoPicker/SDImageView (5.0.4)
- HXPhotoPicker/SwiftyGif (5.0.4)
- HXPhotoPicker/Kingfisher (5.0.4)
- HXPhotoPicker/SDWebImage (5.0.4)
- HXPhotoPicker/Default (5.0.4)
3 个回复
月影银翔 (作者)
大佬们,帮帮忙。。
DCloud_iOS_LZY
Specs satisfying the
HXPhotoPicker (= 5.0.4)dependency were found, but they required a higher minimum deployment target.上面的报错提示已经很明显,找到了HXPhotoPicker的库,但是其需要更高的最低版本系统依赖。
确定HXPhotoPicker库要求的最新系统版本号是多少,然后在config.json中配置
DCloud_iOS_LZY
另外,你的这种pod库配置方式有问题,
"dependencies-pods": [{
"name": "HXPhotoPicker",
"version": "5.0.4"
}
]
上面的配置已经将HXPhotoPicker全库拉下来了,后面配置的子库将不再起作用,如果你希望使用后面的两个子库,直接配置
"dependencies-pods": [
{
"name": "HXPhotoPicker/SwiftyGif",
"version": "5.0.4"
},
{
"name": "HXPhotoPicker/SDWebImage",
"version": "5.0.4"
}
]
月影银翔 (作者)
好的,谢谢,学习到了。
2025-11-11 10:55