我尝试将react-native版本更新为最新的 0.72.3 并运行pod install
,导致下一个错误
[!] CocoaPods could not find compatible versions for pod "SocketRocket":
In snapshot (Podfile.lock):
SocketRocket (= 0.6.0, ~> 0.6.0)
In Podfile:
React-Core/RCTWebSocket (from `../node_modules/react-native/`) was resolved to 0.72.3, which depends on
SocketRocket (= 0.6.1)
Specs satisfying the `SocketRocket (= 0.6.0, ~> 0.6.0), SocketRocket (= 0.6.1)` dependency were found, but they required a higher minimum deployment target.
字符串
问题是什么,有没有正常的解决方法?
3条答案
按热度按时间q3qa4bjr1#
将Podfile中的平台至少更新到iOS 11:
第一个月
参考https://github.com/facebookincubator/SocketRocket/commit/6637623b392a1ee3f1f2ce8c4a6bfcc75dd394e9上最近的SocketRocket需求变更
tjjdgumg2#
我得到了同样的错误。通过删除lockfile和pod文件夹并运行
pod install --repo-update
来修复它。部署目标设置为12.4
。qij5mzcb3#
这对我很有效,在ios文件夹里
bundle exec pod install --repo-update