upgrading to new react-native version and doing pod install throws an error CocoaPods could not find compatible versions for pod "SocketRocket"
Asked Answered
M

6

8

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?

Midship answered 17/7, 2023 at 12:27 Comment(0)
D
9

This worked for me, inside the ios folder

bundle exec pod install --repo-update
Diesel answered 27/7, 2023 at 10:14 Comment(0)
A
6

While upgrading to RN 0.74.1 i faced a similar issue.

[!] CocoaPods could not find compatible versions for pod "RCT-Folly/Fabric"

For me the solution was to delete the Podfile.lock und run pod install. Afterwards the version problems where gone.

Atli answered 29/5 at 7:22 Comment(0)
C
1

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 to 12.4.

Colubrine answered 17/7, 2023 at 16:22 Comment(1)
I had to do bundle exec pod install --repo-update in ios folderTerminal
V
1

in iOS folder, by applying this command its work

bundle exec pod install --repo-update
Vespertilionine answered 28/9, 2023 at 11:31 Comment(0)
T
0

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

Tumular answered 17/7, 2023 at 13:56 Comment(1)
Minimum deployment version is set to 12.4Midship
S
0

The other solutions here didn't work for me, but did was

pod update SocketRocket

Scratch answered 2/10, 2023 at 16:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.