react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Installation not working

Open Tadejo9 opened this issue 3 years ago • 3 comments

Hey. Im trying to install navigation in my application.

Environment:

MacBook Pro M1 | 12.5 Xcode 13.4.1 Node 18.6.0 Npm 8.15.0

These are the dependencies:

    "react": "17.0.2",
    "react-native": "0.68.2",
    "react-native-permissions": "3.6.0",
    "react-native-safe-area-context": "4.1.4" and "4.3.1",
    "react-native-screens": "^3.15.0"

This is the error I'm getting. I've tried updating repo and it did not help.

Scanning for pods...
1.11.3
> pod install
Auto-linking React Native modules for target `test`: RNCAsyncStorage, RNPermissions, RNScreens, react-native-test, and react-native-safe-area-context
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] Unable to find a specification for `React-RCTFabric` depended upon by `react-native-safe-area-context/fabric`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Couldn't install Pods. Updating the Pods project and trying again...
> pod install --repo-update
Auto-linking React Native modules for target `test`: RNCAsyncStorage, RNPermissions, RNScreens, react-native-test, and react-native-safe-area-context
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Updating local specs repositories
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] Unable to find a specification for `React-RCTFabric` depended upon by `react-native-safe-area-context/fabric`

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Unable to find a specification for `React-RCTFabric` depended upon by `react-native-safe-area-context/fabric`

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Tadejo9 avatar Jul 25 '22 16:07 Tadejo9

Same issue here.

I have to downgrade it to 3.3.2.

xulihang avatar Aug 03 '22 10:08 xulihang

Same problem too, will works if you downgraded for 3.4.1

victorsoares96 avatar Aug 13 '22 17:08 victorsoares96

same to me, version 4.2.4

lnanhkhoa avatar Aug 28 '22 10:08 lnanhkhoa

out-of-date source repos which you can update with pod repo update or with pod install --repo-update.

Run one of those commands

jacobp100 avatar Jan 19 '23 15:01 jacobp100