Google-Mobile-Ads-SDK - CocoaPods won't download version 7.9.1 - ios

I've got a problem with CocoaPods and the dependency of 'Google-Mobile-Ads-SDK'.
If I run
'pod install'
with the entry
pod 'Google-Mobile-Ads-SDK'
it doesn't download the framework.
If I change it to the following:
pod 'Google-Mobile-Ads-SDK', '7.9.0'
it works.
All our computers got the same problem.
It seems that the version '7.9.1' has a bug.
EDIT:
Here is my Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
# here we can define globals pods that are used by all targets
def sharedPods
pod 'Mapbox-iOS-SDK'
pod 'CorePlot'
pod 'GoogleAnalytics'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'SDCAlertView'
pod 'Google-Mobile-Ads-SDK'
end
target 'serverapp' do
sharedPods
end
EDIT_2:

Related

pod not been updated, even though it shows an update available through 'pod outdated'

I'm trying to update my pods, I list the pods updates through
pod outdated
podfile ( Further more I have even tried to out 'Firebase/Auth', '6.3.1' in podfile to specify the version but no use ["-" used in place of app, NDA -_- ] )
# Uncomment the next line to define a global platform for your project
use_frameworks!
platform :ios, '9.0'
def extension_pod
# pod 'ReadabilityKit', '0.7.1'
pod 'SDWebImage', '~> 4.0'
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'FirebaseUI/Database'
pod 'Firebase/Storage'
pod 'Firebase/Core'
end
target '-' do
extension_pod
pod 'LGSideMenuController'
pod 'Firebase/MLVision'
pod 'Firebase/MLVisionTextModel'
#pod 'FirebaseUI', '~> 5.0'
pod 'Firebase/Messaging'
pod 'TOCropViewController'
# [START google_pod]
pod 'GoogleSignIn', '4.1.2'
pod 'ARSLineProgress'
#pod 'TesseractOCRiOS', '4.0.0'
# [END google_pod]
pod 'TwitterKit'
pod 'DateTools'
pod 'Fabric'
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for -
target '-Tests' do
inherit! :search_paths
# Pods for testing
end
target '-UITests' do
inherit! :search_paths
# Pods for testing
end
target '-E' do
extension_pod
end
end
Commands that I have done so far to update my Firebase/Auth repo,
pod update 'Firebase'
pod update 'Firebase/Auth'
pod install --no-repo-update
pod repo update && pod update 'Firebase/Auth'
All of these show as follow, but does not update to the specific version shown by pod outdated, am I missing some command for update process to occur?
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 17 dependencies from the Podfile and 33 total pods installed.
Another dependency requires FirebaseAuth to be a lower version. See the Podfile.lock to get the details.
Note that you want to update the FirebaseAuth pod - not Firebase/Auth which is the Auth subspec in the Firebase pod.
It might be related to locking the GoogleSignIn pod to an old version.
Change platform :ios, '9.0' to platform :ios, '10.0'

Specs satisfying the `Firebase/Functions` dependency were found, but they required a higher minimum deployment target

I was trying to install pod 'Firebase/Functions' but failed with the following error:
`[!] CocoaPods could not find compatible versions for pod "Firebase/Functions":
In Podfile:
Firebase/Functions
Specs satisfying the Firebase/Functions dependency were found, but they required a higher minimum deployment target.`
Here is my pod file
# Uncomment the next line to define a global platform for your project
# platform :ios, '11.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to
use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Messaging' ,'~> 4.6.0'
pod 'Firebase/Storage'
pod 'Firebase/Functions'
pod 'GoogleMaps'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Phone'
pod 'ImageSlideshow', '~> 1.6'
pod 'DZNEmptyDataSet'
pod 'SDWebImage'
pod 'SDWebImage/WebP'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
I have searched for some resources and let me do 3 steps:
pod repo update
pod update
pod install
I have done with those 3 steps with still not work.
If this solution didn't work for you (It didn't work for me haha), I found another option - here is the initial error I got:
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
In snapshot (Podfile.lock):
Firebase/Firestore (= 6.34.0, ~> 6.0)
In Podfile:
Firebase/Firestore
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 1.0.6, which depends on
Firebase/Firestore (= 7.3.0)
Specs satisfying the `Firebase/Firestore, Firebase/Firestore (= 6.34.0, ~> 6.0), Firebase/Firestore (= 7.3.0)` dependency were found, but they required a higher minimum deployment target.
My Solution was to switch my ios/Podile's first line to platform :ios, '10.0' and run:
pod update
pod install
Pod Update updates Cocoa Pods, and for me it also installed the packages
Date: 4/21/21
Remove the '~> 4.6.0'.
FirebaseFunctions was introduced after Firebase 4.6.0 and is thus incompatible with the version restriction pod 'Firebase/Messaging' ,'~> 4.6.0'.
You need to increase your deployment target. Go to Project Navigator (Cmd + 1), select the your app's target and increase the iOS Deployment Target to the minimum required by Firebase (iOS >= 8). Finally, rerun pod install:
pod install
change pod 'Firebase/Messaging' ,'~> 4.6.0' to pod 'Firebase/Messaging'
And run pod install
I simply hat to run pod update in the ios folder of my flutter project
As mentioned in the error you need to require a higher minimum deployment target.
Go to your Podfile and uncomment
#platform :ios, '9.0'
Then change the version to 10
platform :ios, '10.0'
Run the build again. Answer was taken from here
As #Brady mentioned you need to update your podfile #platform line.
Mine also has this post install function at the bottom that needs to be updated as well, and seems to override even the target deployment set in Xcode.
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end

How to Update Version Pod Packages?

This what I have now in my Pod file
platform :ios, '9.0'
use_frameworks!
target 'ListHue' do
pod 'RealmSwift'
pod 'SwipeCellKit'
pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
end
I want to update to this
platform :ios, '9.0'
use_frameworks!
target 'ListHue' do
pod 'RealmSwift'
pod 'SwipeCellKit','2.5.0'
pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
end
What is the command I need to run when I need to update my Pod package ?
pod update or pod install or both ?
Use pod install to install new pods in your project and pod update [PODNAME] (without the name if you want to update all the pods to the last version) only when you want to update pods to a newer version.
More information in this cocoapods guide.

iOS Swift - No module such as Firebase

This is my podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'Grabit' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Grabit
pod 'Firebase','>= 2.5.0'
I tried:
Correct podfile like above.
Open project by terminal
Clean and rebuild project.
I tried it many times but I still get the error:
no module such as Firebase
These are my version of Firebase:
Installing Firebase 3.5.2 (was 3.5.2)
Using FirebaseAnalytics (3.3.1)
Using FirebaseInstanceID (1.0.8)
Any help is appreciated.
Things to check when getting this message:
no module such as Firebase
Does your Podfile file have use frameworks!? should look something like
use_frameworks!
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
Notice that if you want the latest version of a pod, you don't need to specify the version
Do you open your project with MyProject.xcworkspace (white icon) file and not with MyProject.xcodeproj (blue icon)?
Close Xcode and run pod install or pod update. Then open the MyProject.xcworkspace and build the project
Try Cleaning up the Project.
So far this works for me. Also I notice you're missing the "end"
target 'yourProjectname' do
platform :ios, '9.3'
use_frameworks!
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end
This is working perfectly for me:
use_frameworks!
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
You don't need to set the version, by using just the name, you'll always get the latest version.
In Termin do pod install, then pod update.
Then completely clean your project with [CMD]+[ALT]+[SHIFT]+[K].
Then clean with [CMD]+[SHIFT]+[K].
Then close Xcode, start MyProject.xcworkspace (white icon) and build.
Delete Derived Data,Try Cleaning the Project and then Build, it will work then.

Cocoa Pods not updating inside of app

I have been assigned at work to update an app that hasn't been touched in a year and a half. The cocoa pods version is 0.22.
I am trying to update it to 0.35. I've run 'sudo gem update' and have .35, but when I run 'pod install' it just installs the old versions of all of the pods (i.e. AFNetworking 1.1.0).
Thanks
platform :ios, '6.0'
pod 'Facebook-iOS-SDK'
pod 'OpenCV'
pod 'RestKit'
pod 'QuickDialog'
pod 'ReactiveCocoa'
pod 'SVProgressHUD'
pod 'Mixpanel'
pod 'GVUserDefaults'
pod 'TTTAttributedLabel'
pod 'uservoice-iphone-sdk'
target :ShoeboxTests, :exclusive => true do
pod 'Kiwi', :head
end
I'm new to using cocoa pods so I'm not sure what to do with this file.
Your podfile specifies that you're targeting iOS 6, so it is possible that cocoapods is only giving you the highest version known to support iOS 6.
Try removing that line entirely, or changing it to:
platform :ios, '8.1'

Resources