问题一:pod 最低兼容版本太低报错
报错内容
[!] CocoaPods could not find compatible versions for pod "TZImagePickerController":
In Podfile:
TZImagePickerController (~> 3.8.8)
Specs satisfying the TZImagePickerController (~> 3.8.8)
dependency were found, but they required a higher minimum deployment target.
这是因为pod 设置的最低兼容版本太低导致的pod install 报错
报错的最低兼容版本设置 platform :ios, '9.0' 设置的是9.0
解决方案:
可以适当的提高最低兼容版本 platform :ios,的值
我这边的情况是设置了 platform :ios, '10.0' 后运行pod install 成功
TZImagePickerController 3.8.8是为了处理iOS18调取相册只展示了自己自定义的相册列表而无法和之前一样展示全部照片的问题
Ps: