I upgraded flutter via flutter upgrade to 3.7. And now im getting the following issue when I flutter build macos my application.
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 9.3.0, ~> 9.3.0)
In Podfile:
firebase_auth (from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`) was resolved to 3.11.2, which depends on
Firebase/CoreOnly (~> 9.6.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `firebase_auth`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
I have tried every suggestion such as
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
arch -x86_64 pod install --repo-update
Deleting Podfiles.
Deleting PodLock.
Has someone else come across the same issue and have a resolution for me by any chance?
To be able to flutter clean and build my application with flutter 3.7
Solution: It was to do with the version of Firebase, seemed to be conflicting issues with version and depednecies. In the Podspec replace each firebase related item as follows:
firebase_core: ^1.20.1
TO
firebase_core: 1.20.1
on running pod install there is appearing following error
[!] CocoaPods could not find compatible versions for pod "OneSignalXCFramework":
In Podfile:
onesignal_flutter (from `.symlinks/plugins/onesignal_flutter/ios`) was resolved to 3.2.7, which depends on
OneSignalXCFramework (= 3.9.1)
None of your spec sources contain a spec satisfying the dependency: `OneSignalXCFramework (= 3.9.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.
try running the following command
cd ios/
pod repo update
rm -rf Podfile.lock Pods
pod install
In macOS terminal I keep getting the [!] Unable to find source ref ... error message whenever I try to run pod install for any Xcode project. I have installed CocoaPods.
Full Error Message Examples:
[!] Unable to find source ref for CLTypingLabel.swift for target CLTypingLabel.
[!] Unable to find source ref for SVIndefiniteAnimatedView.m for target SVProgressHUD
[!] Unable to find source ref for NSButton+WebCache.m for target SDWebImage.
podfile:
platform :ios, '13.0'
target 'Myapp iOS13' do
use_frameworks!
pod 'CLTypingLabel'
end
I figured out how to get CocoaPods working! It seems there might be an issue installing pods on a secondary macbook account even though the account has full admin privileges. I logged into the primary or initial account created on the macbook, installed CocoaPods and pod install was able to install dependencies. I will also need to work on my project on the primary account instead.
My solution, brew must be uninstalled first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
and
brew uninstall cocoapods
brew uninstall ruby
and
sudo gem install ffi
sudo gem install cocoapods
later remove (#) (#platform :ios, '15.0') and change ('15.0'):
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'Myapp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'CLTypingLabel'
end
finally
pod install
I just recently installed an extension to Firebase called Trigger Email which uses a Cloud Firestore Collection. I was trying to Firestore to my iOS project to use it, and got the following error:
'absl/numeric/int128_have_intrinsic.inc' file not found
Error in Xcode
Here are the contents of my podfile as well:
platform :ios, '10.0'
target 'FRC Lookout' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FRC Lookout
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Google'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift'
pod 'MMDrawerController', '~> 0.5.7'
pod 'SwiftyJSON', '~> 4.0'
pod 'Alamofire'
pod 'SVProgressHUD'
pod 'SpreadsheetView'
pod 'CollapsibleTableSectionViewController', '~> 2.0.1'
pod 'JTAppleCalendar', '~> 7.0'
pod 'PageControls'
pod 'SwiftKeychainWrapper'
end
It also looks like the file does exist, but either the wrong path or something.
Any help would be much appreciated.
I got it to work finally after doing a
pod deintegrate
then redoing my
pod install
So I have the same issue as you are having. Well different Pods of course. Did some research...
I've notice when updating or installing Pods, there was a message that says there is an update for CocoaPods. (Just now it's 1.8.4)
So I ran the command > gem install cocoapods
after everything was updated, my project can compile!
I hope this can work for ya and same with everyone else...
For me the other answer did not work. There's also another piece to the puzzle as with the Version 6.13.0 - November 14, 2019 release we see this note
Removed Firestore's dependency on the Protobuf CocoaPod. If you're
manually tracking dependencies, you may be able to remove it from your
build (note, however, that other Firebase components may still require
it).
Added a dependency on the abseil CocoaPod. If you're manually tracking
dependencies, you need to add it to your build.
So even after updating etc, I had the same error as the OP. To correct that, I removed CocoaPods from my project by quitting XCode and then using the cocoapods app. File->Remove Cocoapods from a project.
I then dropped into terminal an updated cocoapods manually
sudo gem install cocoapods
and then navigated to the project folder and then
pod install
to reinstall updated pods in the project. Then when running the project the OP's error was resolved but I was left with
Framework not found Protobuf
so there was some reference to protobuf hanging around. In the project I went to
Target->Build Settings
and using the find field, search for Protobuf which should find it in the Other Linker Flags.
In the Other Linker Flags option, you may see a highlighted section in the middle of that line. Double click to open those frameworks in a popup window and scroll down the list until you find
-framework
"protobuf"
Select those two lines, hit the minus sign at the bottom of that popup window to delete that link, clean and rebuild.
That worked for me.
Deleted the pod files from the project and all files related to pods. Then installed once more in the same project folder and compiled. This worked for me. Used pods with its version number
Ex:
pod 'Firebase/Core', '6.1.0'
pod 'Firebase/Auth', '6.1.0'
pod 'Firebase/Firestore', '6.1.0'
pod 'Firebase/Storage', '6.1.0'
pod 'Firebase/Functions', '6.1.0'
The way to fix this error is to go into your podfile and remove firebase firestore. Then check that you have completed setting up your database on the firebase website. After removing firebase firestore run pod install. This will remove Firebase Firestore. Then go back in to your podfile and re-add Firebase Firestore. This worked for me!
This is caused by a cocoapods environment bug.
To fix it, completely uninstall and reinstall cocoapods.
1)
gem uninstall cocoapods
gem uninstall cocoapods-deintegrate
gem uninstall cocoapods-downloader
2)
sudo gem install cocoapods
3)
pod install
As some others have mentioned the correct answer is to use an updated version of cocoapods.
To check the version of cocoapods use pod --version.
If you see 1.5.0 you need to be on a higher version such as 1.8.4.
sudo gem install cocoapods -v 1.8.4
If after installation you are still not seeing an updated version when you do pod --version then you could be running the wrong pod file.
You'd need to correct that in your ~/.bash_profile.
You can type pod env to see more info about the pod file.
The executable pod that I use is in ~/.rbenv/versions/2.4.1/bin/pod.
Side note. If you have openssl errors you can use one of the following commands.
Use version 1.0.0 (most likely will need this)
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Upgrade to the latest
brew uninstall --ignore-dependencies openssl
brew install openssl
I'm using Artifactory backed Cocoapods. I have the artifactory plugin installed and I have a cocoapods-remote spec repo properly configured in my ~/.cocoapods/repos and ~/.cocoapods/repos-art directories.
I am running into a problem when trying to install the RealmSwift pod.
Podfile:
plugin 'cocoapods-art', :sources => [
'cocoapods-remote'
]
target 'App' do
use_frameworks!
pod 'RealmSwift'
end
Running (pod version: 1.3.1):
pod install
Resulting cocoapods error message:
Installing Realm (2.10.2)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: sync 1.10.8
ERROR: One of realm's submodules is missing!
If you're using Realm and/or RealmSwift from a git branch, please add
'submodules: true' to their entries in your Podfile.
I can get around this problem by substituting pod 'RealmSwift' with:
pod 'RealmSwift', git: 'https://github.com/realm/realm-cocoa.git', submodules: true, tag: 'v2.X.Y'
Is there another work around? This seems like there's something wrong with a symlink? Is there a way to configure Artifactory such that this updated configuration in the Podfile is no longer required?