Getting error while installing Expo modules in React Native iOS Application - ios

I have an application in react-native with minimum iOS version set to 11. I am using Cocoapods as dependency manager. I need to install expo-web-browser and for that I am following this link. So first I need to install Expo modules. But when I run the command npx install-expo-modules#latest,it forces me to update minimum iOS requirement to 12 and after that I get the following error:
Found some duplicated unimodule packages. Installed the ones with the highest version number.
Make sure following dependencies of your project are resolving to one specific version:
expo-file-system, expo-constants
Updating local specs repositories
Analyzing dependencies
[!] There are multiple dependencies with different sources for UMCore in Podfile:
UMCore (from ../node_modules/#unimodules/core/ios)
UMCore (from ../node_modules/#unimodules/core/ios)
Couldn't install Pods. Updating the Pods project and trying again...
Uncaught Error CocoaPodsError: Command pod install failed.
└─ Cause: There are multiple dependencies with different sources for UMCore in Podfile:
UMCore (from ../node_modules/#unimodules/core/ios)
UMCore (from ../node_modules/#unimodules/core/ios)

Related

Consistency issue: build setting `IPHONEOS_DEPLOYMENT_TARGET` has multiple values

I generated new flutter module project for my existing app which has set iOS target to 15.0
I was following https://docs.flutter.dev/development/add-to-app/ios/project-setup this guide with option A but I'm getting this after pod install:
Analyzing dependencies
Downloading dependencies
Installing Flutter (1.0.0)
Installing FlutterPluginRegistrant (0.0.1)
Generating Pods project
[!] An error occurred while processing the post-install hook of the Podfile.
[Xcodeproj] Consistency issue: build setting `IPHONEOS_DEPLOYMENT_TARGET` has multiple values: `{"Release"=>"13.0", "Debug"=>"13.0", "Production"=>"15.0", "Store"=>"15.0"}`
I tried changing the iOS version in pod file by setting target to 15.0 but its not working.
Changing anything in flutter .iOS dir is also not working

react-native Pod install is not working due to EXImageLoader

So I need to add firebase cloud functions in developing react-native project. So before it was working fine, but now it gives me error. What I did so far,
yarn add #react-native-firebase/app yarn add #react-native-firebase/functions
then I tried to cd ios/ && pod install but it gives me this error below
etching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec [!] CocoaPods could not find compatible versions for pod "EXImageLoader": In Podfile: EXImageLoader (from ../node_modules/expo-image-manipulator/node_modules/expo-image-loader/ios)
Specs satisfying the EXImageLoader (from ../node_modules/expo-image-manipulator/node_modules/expo-image-loader/ios) dependency were found, but they required a higher minimum deployment target.
[!] NPM package '#react-native-firebase/crashlytics' depends on '#react-native-firebase/app' v13.1.0 but found v14.0.0, this might cause build issues or runtime crashes.
[!] NPM package '#react-native-firebase/storage' depends on '#react-native-firebase/app' v12.9.3 but found v14.0.0, this might cause build issues or runtime crashes.
[!] NPM package '#react-native-firebase/crashlytics' depends on '#react-native-firebase/app' v13.1.0 but found v14.0.0, this might cause build issues or runtime crashes.
[!] NPM package '#react-native-firebase/storage' depends on '#react-native-firebase/app' v12.9.3 but found v14.0.0, this might cause build issues or runtime crashes.
Desired: I need to solve this so I can run the project. Right now the pod install is not working I need to resolve this issue to run the project.
of course after this failure, the app is stuck I am using expo start to run the project. Please help I could not find any information on online.
expo install expo-image-loader

react native expo prebuild error `UMCore` depended upon by `EXFont`

I am working on a React Native Project based on a bare workflow, and my project is not working on Xcode.
I use expo modules but when i want to setup my ios project by the command "expo prebuild" i get the following error:
⚠️ Something went wrong running pod install in the ios directory.
Command pod repo update failed.
└─ Cause: Couldn't install: EXFont » UMCore. Ensure the CocoaPod "UMCore" is installed in your project, then run npx pod-install to try again.
It seems Cocoapods did not install this file.. but i have no idea how to do it.
And When i launch the command "pod install" i get :
"[!] Unable to find a specification for UMCore depended upon by EXFont"
I followed this guide from Expo : https://github.com/expo/fyi/blob/main/expo-modules-migration.md
It works fine on my Android Project.
I got the latest version of Expo and CocoaPods and my Xcode version is 13.0.
Any idea ? I did not found a lot of topics on this subject, and none solve this error...
I had similar errors after updating the expo.
In my case it was:
[!] Unable to find a specification for UMCore depended upon by EXSecureStore
[!] Unable to find a specification for UMCore depended upon by EXLinearGradient
Solution
expo install expo-secure-store
expo install expo-linear-gradient
cd ios
pod install --repo-update --clean-install
To solve your issue, I think you need to do:
expo install expo-font
cd ios
pod install # or `pod install --repo-update --clean-install`

Cocoapods could not find comatible versions for pod "Capacitor"

I have update the Xcode to latest version 12.5 and after that I was getting below error for capacitor
switch must be exhaustive xcode
Then to resolve this error I ran the below command and it got resolved
npm install #capacitor/ios#latest
Then I was trying to sync the ios project it has started to give the following error now
Cocoapods could not find compatible versions for pod "Capacitor": In
Podfile: capacitor (from '.../../node_modules/capacitor/ios) Specs
satisfying the 'Capacitor (from '.../../node_modules/#capacitor/ios')'
dependency were found, but they required a higher minimum deployment
target
to solve this error I have tried below commands on root level and ios/App folder level also
pod install --repo-update
But this doesn't seems to resolve the error.
The app is build using ionic framework

GoogleMaps SDK 1.10.21020.0 Update iOS

Just trying to update my GoogleMaps SDK version for an iOS application. I'm running Xcode 7.1 and following the directions at https://developers.google.com/maps/documentation/ios-sdk/start. Unfortunately I cannot seem to run the following:
pod install
in the terminal. I have tried to add the '$(inherited)' flag into my project, deleting and recreating my Podfile, updating pod, etc. but nothing seems to let me update the SDK. Below is the code the terminal spits out after I run the pod install command:
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using GoogleMaps (1.10.1)
Generating Pods project
Integrating client project
Sending stats
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
[!] The `projectName [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `projectName [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
You have not updated the gems. Try sudo gem install cocoapods
then clean the project cmd + shift + k. Then in your Framework Search Path (in build settings) use $inherited. then install a podfile and mention all the dependencies you need. This procedure might help you

Resources