Question
Error after adding google_mobile_ads sdk in swift using CocoaPods
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