Search This Blog

2025/02/09

Install Mobile Ads SDK (iOS) by cocoapods

Navigate to your project folder

Open a terminal and go to your project directory:

cd /path/to/your/project


Initialize the Podfile

Run the following command to create a Podfile:

pod init


Open the Podfile

Use a text editor or open it directly in the terminal:

open Podfile


Add the Google Mobile Ads SDK

Inside the Podfile, add this line under target 'YourApp' do:

pod 'Google-Mobile-Ads-SDK', '11.5.0'


Save and close the file

Install the pods with repo update, run the following command:

pod install --repo-update


Open the project using the generated .xcworkspace file

open YourProject.xcworkspace

No comments :

Post a Comment