Open mezalejandro opened 1 year ago
I think you are missing this step https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#cocoapods
I added on the Podfile, but now i've this error:
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In Podfile:
FBSDKCoreKit
react-native-fbsdk-next (from `../node_modules/react-native-fbsdk-next`) was resolved to 11.2.1, which depends on
react-native-fbsdk-next/Core (= 11.2.1) was resolved to 11.2.1, which depends on
FBSDKCoreKit (~> 15.0.0)
CocoaPods could not find compatible versions for pod "Google-Mobile-Ads-SDK":
In Podfile:
Google-Mobile-Ads-SDK
react-native-ad-manager (from `../node_modules/react-native-ad-manager`) was resolved to 2.0.7, which depends on
Google-Mobile-Ads-SDK (~> 9.0.0)
CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
In Podfile:
RNFBAnalytics (from `../node_modules/@react-native-firebase/analytics`) was resolved to 17.5.0, which depends on
Firebase/Analytics (= 10.7.0) was resolved to 10.7.0, which depends on
Firebase/Core (= 10.7.0) was resolved to 10.7.0, which depends on
FirebaseAnalytics (~> 10.7.0) was resolved to 10.7.0, which depends on
FirebaseAnalytics/AdIdSupport (= 10.7.0) was resolved to 10.7.0, which depends on
GoogleAppMeasurement (= 10.7.0)
react-native-ad-manager (from `../node_modules/react-native-ad-manager`) was resolved to 2.0.7, which depends on
Google-Mobile-Ads-SDK (~> 9.0.0) was resolved to 9.0.0, which depends on
GoogleAppMeasurement (< 9.0, >= 7.0)
My Podfile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '13'
install! 'cocoapods', :deterministic_uuids => false
production = ENV["PRODUCTION"] == "1"
$RNFirebaseAsStaticFramework = true
abstract_target 'MultipleAppsPods' do
config = use_native_modules!
use_frameworks!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
:production => production,
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
:flipper_configuration => FlipperConfiguration.disabled,
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'FBSDKCoreKit', :modular_headers => true
pod 'RNAWSCognito', :path => '../node_modules/amazon-cognito-identity-js'
pod 'ComScore', '~> 6.0'
pod 'react-native-google-cast/GuestMode', path: '../node_modules/react-native-google-cast'
pod 'google-cast-sdk', '4.6.1'
pod 'react-native-config', :path => '../node_modules/react-native-config'
pod 'react-native-config/Extension', :path => '../node_modules/react-native-config'
pod 'Google-Mobile-Ads-SDK'
target 'appOne' do
end
target 'appTwo' do
end
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end
This is the package.json
"@react-native-firebase/analytics": "^17.0.0",
"@react-native-firebase/app": "^17.0.0",
"@react-native-firebase/crashlytics": "^17.0.0",
"react-native-ad-manager": "^2.0.7",
Thanks
Hi there, Got exacty the same issue with latest version (2.0.8)
node_modules/react-native-ad-manager/ios/RNAdManageNativeView.m:10:9: 'MetaAdapter/MetaAdapter.h' file not found
#import <MetaAdapter/MetaAdapter.h>
but I've correctly have :
use_react_native!(:path => config["reactNativePath"], :hermes_enabled => true)
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'Google-Mobile-Ads-SDK'
in my podfile.
Any news about this?
I've this error when i run pod install.
[!] The 'Pods-MultipleAppsPods-appOne' target has transitive dependencies that include statically linked binaries: (/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework/GoogleMobileAds.xcframework and /ios/Pods/GoogleMobileAdsMediationFacebook/MetaAdapter-6.12.0.1/MetaAdapter.xcframework)
This is my Podfile: