Swiftpack.co - Koze/GoogleMobileAds-SPM as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Koze.
Koze/GoogleMobileAds-SPM 9.3.0
Unofficial Swift Package for Google Mobile Ads SDK
⭐️ 21
🕓 1 year ago
iOS
.package(url: "https://github.com/Koze/GoogleMobileAds-SPM.git", from: "9.3.0")

Unofficial Swift Package for Google Mobile Ads SDK (deprecated)

Google has released an official package.
Use the official package instead of this package.
https://github.com/googleads/swift-package-manager-google-mobile-ads

Required Settings

  • Add the -ObjC option to Other Linker Flags in the Build Settings tab of the host project.

Workaround for Xcode 12.0...12.4

Add the following script to Scheme -> Build -> Post-actions.

rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/GoogleMobileAds.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/GoogleMobileAds.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Watch/GoogleMobileAds.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/AppClips/AppClip.app/GoogleMobileAds.framework"

rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/UserMessagingPlatform.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/UserMessagingPlatform.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Watch/UserMessagingPlatform.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/AppClips/AppClip.app/UserMessagingPlatform.framework"

rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/GoogleAppMeasurement.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/GoogleAppMeasurement.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Watch/GoogleAppMeasurement.framework"
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/AppClips/AppClip.app/GoogleAppMeasurement.framework"

Official Information

https://developers.google.com/admob/ios/download
There are release notes, terms of service, SDK binary and more.
You can download official xcframework and construct your own Swift package safely.

GitHub

link
Stars: 21
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics