iOS Google AdMod SDK plugin #14502
Replies: 1 comment
-
|
The issue is that adding frameworks to In your Tauri plugin's iOS directory, find the // Package.swift
let package = Package(
name: "your-plugin-name",
platforms: [
.iOS(.v13)
],
products: [
.library(
name: "your-plugin-name",
targets: ["your-plugin-name"])
],
dependencies: [
.package(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", from: "11.0.0")
],
targets: [
.target(
name: "your-plugin-name",
dependencies: [
.product(name: "GoogleMobileAds", package: "swift-package-manager-google-mobile-ads")
],
path: "Sources")
]
)The key part is adding it to both the Note: There was a known issue with Tauri and xcframeworks (which Google Mobile Ads uses) but it was fixed in PR #13995 back in August. Make sure you're on a recent version of Tauri (2.0+). If you still get build errors after adding it to Package.swift, try running Also worth mentioning - if you plan to use mediation adapters with AdMob, Google recommends using CocoaPods instead of SPM since the adapters aren't available through Swift Package Manager yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add support for iOS for this Tauri AdMob plugin but got problems adding the SDK to the Swift Package dependency.
PR.
I added the frameworks in the Tauri conf, still the same errors:
Any pointers?
Beta Was this translation helpful? Give feedback.
All reactions