i tried to update react-native version to latest 0.72.3 and run pod install
which resulted in next error
[!] 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.
what can be the issue and is there a normal way around it?
2
Answers
Update the platform in the Podfile to at least iOS 11:
platform :ios, '11.0'
Reference the recent SocketRocket requirement change at https://github.com/facebookincubator/SocketRocket/commit/6637623b392a1ee3f1f2ce8c4a6bfcc75dd394e9
I got the same error. Manage to fix it by deleting the lockfile and pod folder, and run
pod install --repo-update
. Had deployment target set to12.4
.