Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

No such module 'PersonalizedAdConsent' #21

Open
vidriloco opened this issue Jun 8, 2018 · 4 comments
Open

No such module 'PersonalizedAdConsent' #21

vidriloco opened this issue Jun 8, 2018 · 4 comments
Assignees

Comments

@vidriloco
Copy link

Hello everyone!

I am having a problem when importing the PersonalizedAdConsent module. I am following the documentation given on here https://developers.google.com/admob/ios/eu-consent.

Am I missing something?

Thanks

@rampara
Copy link
Contributor

rampara commented Jun 25, 2018

@vidriloco are you including the Consent SDK into your project with Cocoapods?

@rampara rampara self-assigned this Jun 25, 2018
@kevinchau
Copy link

@vidriloco If you don't have use_frameworks! in your Podfile, then you need to do this: pod 'PersonalizedAdConsent', :modular_headers => true

@deb761
Copy link

deb761 commented Jul 2, 2019

I am also having this problem:

Podfile (added .txt so github would load it):
Podfile.txt

XCode version 10.2.1. Deployment target iOS 11. Swift 5.

@lsamaria
Copy link

lsamaria commented Nov 27, 2019

You need to add this line inside your podfile: install! 'cocoapods', :deterministic_uuids => false

Like this:

# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'

install! 'cocoapods', :deterministic_uuids => false

target 'YourProjectName' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for YourProjectName

  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'Firebase/AdMob'
  pod 'Google-Mobile-Ads-SDK'
  pod 'PersonalizedAdConsent'

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = ‘5.0’
        end
    end
end

end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants