I am trying to build with the command 'eas build --platform ios' but the build fails At Pod installation step. I also tried to clear the cache but nothing changed.
Here are the log:
Auto-linking React Native modules for target `BallNConnect`: RNCAsyncStorage, RNCMaskedView, RNDateTimePicker, RNDeviceInfo, RNFBApp, RNFBFirestore, RNGestureHandler, RNReanimated, RNScreens, RNVectorIcons, lottie-ios, lottie-react-native, react-native-maps, and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
CocoaPods 1.11.3 is available.
To update use: `sudo gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.3
[!] CocoaPods could not find compatible versions for pod "GoogleMaps":
In Podfile:
react-native-google-maps (from `/Users/expo/workingdir/build/node_modules/react-native-maps`) was resolved to 0.29.4, which depends on
Google-Maps-iOS-Utils (= 2.1.0) was resolved to 2.1.0, which depends on
GoogleMaps
react-native-google-maps (from `/Users/expo/workingdir/build/node_modules/react-native-maps`) was resolved to 0.29.4, which depends on
GoogleMaps (= 3.5.0)
CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
EXFirebaseCore (from `../node_modules/expo-firebase-core/ios`) was resolved to 4.1.1, which depends on
Firebase/Core (= 7.7.0) was resolved to 7.7.0, which depends on
FirebaseAnalytics (= 7.7.0) was resolved to 7.7.0, which depends on
nanopb (~> 2.30907.0)
RNFBFirestore (from `../node_modules/#react-native-firebase/firestore`) was resolved to 12.9.3, which depends on
Firebase/Firestore (= 8.8.0) was resolved to 8.8.0, which depends on
FirebaseFirestore (~> 8.8.0) was resolved to 8.8.0, which depends on
nanopb (~> 2.30908.0)
[stderr] [!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `6D6F16C9EE89401295D6CEB6` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
Error: Compatible versions of some pods could not be resolved.
You are seeing this error because either:
- Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.
- Some of the pods used in your project depend on different versions of the same pod. See logs for more information.```
You can only either have ReactNative Firebase (RNFB) or Expo Firebase installed but you cannot install both. Sometimes there is no conflict, but eventually somewhere someplace an issue will arise.
I have spent days on this before, and the only resolution (on the advice of the Expo discord) was to install only one package. This was extremely inconvenient but sometimes expo can lack flexibility IMHO.
Related
When I start to run flutter ios the project with "flutter run" it gives
`Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
`
Then I run "pod install" inside ios/ It gives
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on
Firebase/CoreOnly (= 8.11.0)
None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).
You have either:
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
Then
I tried pod install --repo-update
It gives
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
firebase_core (from .symlinks/plugins/firebase_core/ios) was resolved to 1.12.0, which depends on
Firebase/CoreOnly (= 8.11.0)
None of your spec sources contain a spec satisfying the dependency: Firebase/CoreOnly (= 8.11.0).
You have either:
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
Do you want to help me about this problem?
You should go to iOS folder and delete:
pods folder and podfile.lock
after that, you should add below lines to yaml file
firebase_core: ^1.12.0 "[last version in dev dart]"
firebase_analytics: ^8.3.4 "[last version in dev dart]"
firebase_crashlytics: ^2.3.0. "[last version in dev dart]"
firebase_messaging: ^11.1.0. "[last version in dev dart]"
run your app to install and update pod file
This is solved by deleting
Podfile.lock
pods folder
updating these packages
firebase_core: ^1.12.0
firebase_analytics: ^8.3.4
firebase_crashlytics: ^2.3.0.
firebase_messaging: ^11.1.0.
then running first
pod repo remove trunk
and finally
pod install
Iam getting this error while installing pods from the terminal. It seems like version 3.14.5 is not ready for user
With version 3.14.4 its working fine. I have tried pod repo update, pod update all the things
Is 3.14.5 is the beta version?
[!] CocoaPods could not find compatible versions for pod "GoogleAds-IMA-iOS-SDK":
In Podfile:
GoogleAds-IMA-iOS-SDK (~> 3.14.5)
None of your spec sources contain a spec satisfying the dependency: GoogleAds-IMA-iOS-SDK (~> 3.14.5).
You have either:
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
According to https://cocoapods.org/pods/GoogleAds-IMA-iOS-SDK, the latest published version to CocoaPods is 3.14.4
After updating FireBase SDK in project I get error:
iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
pod install output:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Analytics (= 5.5.0) was resolved to 5.5.0, which depends on
Firebase/Core (= 5.5.0)
Firebase/Core (= 5.4.0)
Specs satisfying the Firebase/Core (= 5.4.0), Firebase/Core (= 5.5.0) dependency were found, but they required a higher minimum deployment target.
Unity SDK on site is 5.2.1 :(
Any help needed :)
It is not valid in CocoaPods to request subspecs from two different versions of the same pod. You're Podfile is requesting 5.4.0 for the Core subspec from the Firebase pod and 5.5.0 for the other Firebase subspecs.
The most minimal solution is to change the Core version reference:
pod 'Firebase/Core', '5.5.0'.
However, would be better to remove the version specifications completely to specify the latest supported versions of everything - unless you have special needs to use old versions.
I'm trying to integrate Firebase-Analytics in my Unity 2013.3.1 project.
After following the integration guide, I've tried to build the project.
However, Unity fails to build. The reason seems to be cocoapods.
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In Podfile:
Firebase/Analytics (= 4.8.1)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 4.8.1)`.
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.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
I've tried to reinstall cocoapods and re-run pod setup, and also deleting the repo and re-setupping using rm -rf ~/.cocoapods/repos/master, but I had no success.
Here's the generated Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
target 'Unity-iPhone' do
pod 'Firebase/Analytics', '4.8.1'
pod 'Firebase/Core', '4.8.1'
end
One last thing I've tried was to remove the specific version tags into the Podfile (I've removed the '4.8.1'). This fixed the pod install, however I couldn't find a way to have a successfull build from unity, since the Podfile is auto-generated.
Here's the pod install output after removing the version tag:
Analyzing dependencies
Downloading dependencies
Installing Firebase (4.9.0)
Installing FirebaseAnalytics (4.0.9)
Installing FirebaseCore (4.0.15)
Installing FirebaseInstanceID (2.0.9)
Installing GoogleToolboxForMac (2.1.3)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 6 total pods installed.
It looks like FirebaseAnalytics is currently at version 4.0.9, not 4.8.1.
Did anyone have similar issues?
Update to the 4.4.2 release.
Or to workaround with 4.4.1:
Manually edited each of Dependencies.xml files in Assets/Firebase/Editor to change the version from 4.8.1 to 4.8.2. Example:
<iosPods>
<!-- Mike changed this from 4.8.1 to 4.8.2 -->
<iosPod name="Firebase/Analytics" version="4.8.2" minTargetSdk="7.0">
</iosPod>
</iosPods>
Reference and additional detail here.
The version of FirebaseAnalytics used by Firebase 4.9 is 4.0.9, not 4.8.1. See the podspec for reference.
Another possible issue for failing is that your dependency (iOS 7) is too old and it's not supported by Xcode 9, nor by the latest version of Firebase.
Replace
platform :ios, '7.0'
with
platform :ios, '8.0'
I've followed the Bluemix Push SDK for iOS following the online documentation:
I am trying to run a sample app - https://github.com/ibm-bluemix-mobile-services/bms-samples-swift-hellopush .
But after doing a pod update - I only get the following pods
BMSAnalyticsAPI (1.0.1)
BMSCore (1.0.0)
BMSPush (1.0.3) .
How can I get the latest pod for the above i.e to
BMSAnalyticsAPI (2.2.0)
BMSCore (2.3.1)
BMSPush (3.1.1) as given their sample video -https://www.youtube.com/watch?v=cOXjn3fuNG0
I am on CocoaPods version 1.1.1, and it worked successfully for me to perform a pod update inside the cloned repository. I recommend either installing this version, or reinstalling your current version. You must perform the pod update inside your project with the Podfile.
$ pod update
Update all pods
Updating local specs repositories
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your diff.renameLimit variable to at least 6318 and retry the command.
CocoaPods 1.2.1.rc.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.1.rc.1
Analyzing dependencies
Downloading dependencies
Installing BMSAnalyticsAPI (2.2.0)
Installing BMSCore (2.3.1)
Installing BMSPush (3.1.1)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `helloPush_Swift3.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 3 total pods installed.
Doing a pod outdated will list all pods that have updates available too.