Unity Firebase + AdMob conflict (GoogleAppMeasurement) - xcode

Unity: 2019.4.8f1
AdMob v5.4.0
Firebase v6.16.1 (Messaging & Analytics)
Target minimum iOS Version 12.0
Problem
I can't build the project. XCode error:
../Libraries/Plugins/iOS/GADUAdLoader.h:5:9: 'GoogleMobileAds/GoogleMobileAds.h' file not found
When I trying to update pods terminal throw the next error:
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
Firebase/Analytics (= 6.32.2) was resolved to 6.32.2, which depends on
Firebase/Core (= 6.32.2) was resolved to 6.32.2, which depends on
FirebaseAnalytics (= 6.8.2) was resolved to 6.8.2, which depends on
GoogleAppMeasurement (= 6.8.2)
Google-Mobile-Ads-SDK (~> 7.68) was resolved to 7.68.0, which depends on
GoogleAppMeasurement (~> 7.0)
Attempts
Add 'pod 'GoogleAppMeasurement', '7.0'' to Podfile.
Result
CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
Firebase/Analytics (= 6.32.2) was resolved to 6.32.2, which depends on
Firebase/Core (= 6.32.2) was resolved to 6.32.2, which depends on
FirebaseAnalytics (= 6.8.2) was resolved to 6.8.2, which depends on
GoogleAppMeasurement (= 6.8.2)
Google-Mobile-Ads-SDK (~> 7.68) was resolved to 7.68.0, which depends on
GoogleAppMeasurement (~> 7.0)
GoogleAppMeasurement (= 7.0)
Uninstall and install cocoapods
Result
Same error
Project Podfile
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '12.0'
target 'UnityFramework' do
pod 'Firebase/Analytics', '6.32.2'
pod 'Firebase/Core', '6.32.2'
pod 'Firebase/Messaging', '6.32.2'
pod 'Google-Mobile-Ads-SDK', '~> 7.68'
end
How can I resolve this problem?

Google-Mobile-Ads-SDK version 7.68 is only compatible with Firebase 7.x. If you want to use Firebase 6.x, you need to use 7.67 or earlier.

Just delete at the top
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
my pod file
platform :ios, '11.0'
target 'UnityFramework' do
pod 'Google-Mobile-Ads-SDK', '~> 7.68'
end

Related

Dropbox pod install Error - Higher Minimum Deployment Required?

Getting this message when attempting to install Dropbox- higher minimum deployment target required. I am on iOS 9.3. Any ideas?
$ pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Ensembles/Dropbox":
In Podfile:
Ensembles/Dropbox (~> 2.0)
Specs satisfying the Ensembles/Dropbox (~> 2.0) dependency were found, but they required a higher minimum deployment target.
It looks like the highest version of the Ensembles Pod available publicly is 1.8 and the Podfile is requesting 2.0 - https://cocoapods.org/pods/Ensembles.
If you have additional questions, please share the Podfile.

Unable to find a specification for `SwiftJSON (= 3.1.4)`

Error while installing cocoa pods in my Xcode project
Unable to find a specification for SwiftJSON (= 3.1.4)
Framework you want to use is called SwiftyJSON, not SwiftJSON
pod 'SwiftyJSON', '3.1.4'
Also the newest version of SwiftyJSON is 4.2.0, so you should use this version and then there is no need to specify version
pod 'SwiftyJSON'

CocoaPods could not find compatible versions for pod "Firebase/Core"

Here is my Podfile:
source 'https://github.com/CocoaPods/Specs'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'Unity-iPhone' do
pod 'Google-Mobile-Ads-SDK', '7.3.1'
pod 'Firebase/Core'
end
It works well when I run 'pod install'
output:
Analyzing dependencies
Downloading dependencies
Using Firebase (4.13.0)
Using FirebaseAnalytics (4.2.0)
Using FirebaseCore (4.0.20)
Using FirebaseInstanceID (2.0.10)
Using Google-Mobile-Ads-SDK (7.3.1)
Using GoogleToolboxForMac (2.1.4)
Using nanopb (0.3.901)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 7 total pods installed.
Perfect, everything is fine,But if I add a specific version with FirebaseCore,like below code:
pod 'Firebase/Core','4.0.20'
and 'pod install' again
output:
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Core (= 4.0.20)
None of your spec sources contain a spec satisfying the dependency: `Firebase/Core (= 4.0.20)`.
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.
Actually,FirebaseCore with 4.0.20 is exist,So how should I fix it?
I fixed it right now, just change Firebase/Core to FirebaseCore
(I was checked FirebaseCore.podspec file in GitHub.)
The podspec versioning for Firebase and FirebaseCore are separate, so you shouldn't use them interchangeably. The Firebase pod is a parent for the subspecs Firebase/Core, Firebase/Analytics, etc., but FirebaseCore is not using the same versioning because FirebaseCore is not a subspec of Firebase, whereas Firebase/Core is.
For reference, the Firebase podspec is here: https://github.com/CocoaPods/Specs/blob/980d013a857e7ef973531f1cf85ddb5b8a56d1b0/Specs/0/3/5/Firebase/5.10.0/Firebase.podspec.json
Run the following commands in your project/ios folder in the order:
pod update Firebase/Core
pod install --repo-update

Pod outdated failes caused by Firebase/AdMob

I tried to find new pod-versions after the release of Swift 4.2. So I called
pod outdated
in the terminal. According to this this kind of error message occurs:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/AdMob":
In Podfile:
Firebase/AdMob
Specs satisfying the `Firebase/AdMob` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "GoogleUtilities/MethodSwizzler":
In Podfile:
Firebase/AdMob was resolved to 5.8.0, which depends on
Firebase/Core (= 5.8.0) was resolved to 5.8.0, which depends on
FirebaseAnalytics (= 5.1.2) was resolved to 5.1.2, which depends on
GoogleUtilities/MethodSwizzler (~> 5.2.0)
Specs satisfying the `GoogleUtilities/MethodSwizzler (~> 5.2.0)` dependency were found, but they required a higher minimum deployment target.
The deployment target wasn't changed and is still at 9.0. These Firebase-Pods are listed in my Podfile:
pod 'Firebase/AdMob'
pod 'Firebase/Messaging'
pod 'Firebase/Core'
The current version of Firebase/AdMob is (5.8.0).I already removed all pods and installed them new. But didn't worked.
Has anyone a solution for this?
Do a pod update.
This was fixed today in Firebase 5.8.1. Details in this github issue.

CocoaPods 1.0.0b6 incorrect subspec dependents header paths when use_frameworks

I've got a simple simple PodFile for an empty single view app target and project named 'tf' in workspace 'ws'
platform :ios, '8.0'
use_frameworks!
workspace 'ws'
project 'tf/tf'
target 'tf' do
pod 'ShareKit/Facebook', '~> 5.0.0'
pod 'ShareKit/Tumblr', '~> 5.0.0'
end
Using 1.0.0b6 it chugs out:
MacBook-Pro:testflurry steve$ pod install
Analyzing dependencies
Downloading dependencies
Installing Bolts (1.7.0)
Installing Facebook-iOS-SDK (3.24.4)
Installing PKMultipartInputStream (1.1.0)
Installing SAMTextView (0.2.2)
Installing SDWebImage (3.7.5)
Installing SSKeychain (1.2.3)
Installing ShareKit (5.0.0)
Installing UIActivityIndicator-for-SDWebImage (1.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 8 total pods installed.
It won't build, an import inside sharekit fails to be found
#import <UIActivityIndicator-for-SDWebImage/UIImageView+UIActivityIndicatorForSDWebImage.h>
The reason seems obvious, when you inspect ShareKit target in the pods project, the HEADER_SEARCH_PATHS ends up as
"${PODS_ROOT}/Headers/Private"
"${PODS_ROOT}/Headers/Public"
I gather that ${PODS_ROOT} evaluates to ${SRCROOT} or the project dir and the headers folder is empty. Seems like I'm either missing something fundamental or something isn't right. 'little help?

Resources