I added the google_mobile_ads sdk v11.6.0 in my swift project. Now when I run the project I get the following error
ld: warning: Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: warning: Could not find or use auto-linked framework 'MarketplaceKit': framework 'MarketplaceKit' not found
ld: Undefined symbols:
enum case for MarketplaceKit.AppDistributor.testFlight(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
l007 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
l008 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
enum case for MarketplaceKit.AppDistributor.marketplace(MarketplaceKit.AppDistributor.Type) -> (Swift.String) -> MarketplaceKit.AppDistributor, referenced from:
l007 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
l008 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
enum case for MarketplaceKit.AppDistributor.other(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
l007 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
l008 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
static MarketplaceKit.AppDistributor.current.getter : MarketplaceKit.AppDistributor, referenced from:
function signature specialization <Arg[0] = Dead> of static GoogleMobileAds.GADMarketplaceKitSignals.appDistributor() async -> Swift.String in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
async function pointer to static MarketplaceKit.AppDistributor.current.getter : MarketplaceKit.AppDistributor, referenced from:
function signature specialization <Arg[0] = Dead> of static GoogleMobileAds.GADMarketplaceKitSignals.appDistributor() async -> Swift.String in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
enum case for MarketplaceKit.AppDistributor.appStore(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
l007 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
l008 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
type metadata accessor for MarketplaceKit.AppDistributor, referenced from:
l007 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
l008 in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
nominal type descriptor for MarketplaceKit.AppDistributor, referenced from:
_symbolic _____Sg 14MarketplaceKit14AppDistributorO in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
__swift_FORCE_LOAD_$_swiftXPC, referenced from:
__swift_FORCE_LOAD_$_swiftXPC_$_GoogleMobileAds in GoogleMobileAds[arm64][423](GADMarketplaceKitSignals.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
when I remove google_mobile_ads SDK from pods everything works fine
11.6.0 2024-06-17
Added a dependency on MarketplaceKit. This requires apps to build with Xcode 15.3 or above. MarketplaceKit is Swift-only, so a Swift placeholder file has been added to the distribution so Swift standard libraries are included in apps even if they don't contain other Swift files.
Two solutions.
pod 'Google-Mobile-Ads-SDK', '11.5.0'If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With