nandorojo / zeego

Menus for React (Native) done right.
https://zeego.dev
MIT License
1.42k stars 41 forks source link

Error building the app (pod install fails) #72

Closed aladin-bilalagic closed 3 months ago

aladin-bilalagic commented 7 months ago

I had a problem after installing the package according to documentation that the app won't build anymore because of missing pod package.

Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Unable to find a specification for `ReactNativeIosUtilities` depended upon by `ReactNativeIosContextMenu`

It seems that react-native-ios-context-menu package requires to install also react-native-ios-utilities so that the pods install properly.

Not sure if it was just a problem in my case or something changed with react-native-ios-context-menu and submitting the issue just in case.

By the way, thanks for all the great packages that you built!

Karthik-B-06 commented 6 months ago

Facing the same issue.

Auto-linking React Native modules for target `ChatwootApp`: RNFlashList, RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-blur, react-native-keyboard-controller, react-native-menu, react-native-pager-view, and react-native-safe-area-context
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
[Codegen] Found FBReactNativeSpec
[Codegen] Found rncore
[!] Unable to find a specification for `ReactNativeIosUtilities` depended upon by `ReactNativeIosContextMenu`

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: ReactNativeIosContextMenu » ReactNativeIosUtilities. Updating the Pods project and trying again...
> pod install --repo-update
Using Expo modules
[Expo] Enabling modular headers for pod ExpoModulesCore
[Expo] Enabling modular headers for pod ReactNativeIosUtilities
[Expo] Enabling modular headers for pod DGSwiftUtilities
[Expo] Enabling modular headers for pod ContextMenuAuxiliaryPreview
Auto-linking React Native modules for target `ChatwootApp`: RNFlashList, RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-blur, react-native-keyboard-controller, react-native-menu, react-native-pager-view, and react-native-safe-area-context
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Updating local specs repositories
Analyzing dependencies
[Codegen] Found FBReactNativeSpec
[Codegen] Found rncore
[!] Unable to find a specification for `ReactNativeIosUtilities` depended upon by `ReactNativeIosContextMenu`

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

Couldn't install: ReactNativeIosContextMenu » ReactNativeIosUtilities. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Unable to find a specification for `ReactNativeIosUtilities` depended upon by `ReactNativeIosContextMenu`

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

Package versions installed

    "@react-native-menu/menu": "^0.9.1",
    "react-native-ios-context-menu": "^2.3.0",
    "zeego": "^1.7.2",
aladin-bilalagic commented 6 months ago

I installed react-native-ios-utilities and it works now.

Karthik-B-06 commented 5 months ago

@aladin-bilalagic I am getting this error now.

[!] CocoaPods could not find compatible versions for pod "ReactNativeIosUtilities":
  In Podfile:
    ReactNativeIosUtilities (from `../node_modules/react-native-ios-utilities`)

Specs satisfying the `ReactNativeIosUtilities (from `../node_modules/react-native-ios-utilities`)` dependency were found, but they required a higher minimum deployment target.
aladin-bilalagic commented 5 months ago

@aladin-bilalagic I am getting this error now.

[!] CocoaPods could not find compatible versions for pod "ReactNativeIosUtilities":
  In Podfile:
    ReactNativeIosUtilities (from `../node_modules/react-native-ios-utilities`)

Specs satisfying the `ReactNativeIosUtilities (from `../node_modules/react-native-ios-utilities`)` dependency were found, but they required a higher minimum deployment target.

What is your iOS Deployment target?

selimjouan commented 5 months ago

I was facing the same issue. The solution is to install "react-native-ios-context-menu": "^1.15.1", not v2. (It's the same version as Zeego requires here https://github.com/nandorojo/zeego/blob/master/packages/zeego/package.json)

No need for react-native-ios-utilities with this version installed.

Karthik-B-06 commented 5 months ago

I resolved the issue by removing min_ios_version_supported to 13.0 in my Podfile