Undefined symbols for architecture x86_64

185 views
Skip to first unread message

Kristoffer Anger

unread,
May 18, 2022, 2:19:51 PM5/18/22
to Google Mobile Ads SDK Developers
I cannot get the iOS project to compile when adding this line to AppDelegate.m:

    [[GADMobileAds sharedInstance] startWithCompletionHandler:nil];

Getting the error: 

ld: warning: ignoring file Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.xcframework/ios-arm64_armv7/GoogleAppMeasurement.framework/GoogleAppMeasurement, missing required architecture x86_64 in file Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.xcframework/ios-arm64_armv7/GoogleAppMeasurement.framework/GoogleAppMeasurement (2 slices)
ld: warning: ignoring file Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurementIdentitySupport.xcframework/ios-arm64_armv7/GoogleAppMeasurementIdentitySupport.framework/GoogleAppMeasurementIdentitySupport, missing required architecture x86_64 in file Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurementIdentitySupport.xcframework/ios-arm64_armv7/GoogleAppMeasurementIdentitySupport.framework/GoogleAppMeasurementIdentitySupport (2 slices)
ld: warning: ignoring file Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework/GoogleMobileAds, missing required architecture x86_64 in file Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework/GoogleMobileAds (2 slices)
ld: warning: ignoring file Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_armv7/UserMessagingPlatform.framework/UserMessagingPlatform, missing required architecture x86_64 in file Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_armv7/UserMessagingPlatform.framework/UserMessagingPlatform (2 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GADMobileAds", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64

Any help on this subject is appreciated.
I have updated cocoapods, installed pods, updated pods, cleaned build folders and deleted derived data many times already. 
Reply all
Reply to author
Forward
0 new messages