今天升级Google Admob iOS SDK以后,Xcode编译突然报错:
Showing All Messages
In /Users/XXX/Documents/libs/GoogleMobileAdsSdkiOS-7.68.0/GoogleAppMeasurement.framework/GoogleAppMeasurement(APMEExperiment_3e0573efa7b433360f767304cef16d18.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/XXX/Documents/libs/GoogleMobileAdsSdkiOS-7.68.0/GoogleAppMeasurement.framework/GoogleAppMeasurement' for architecture arm64
修改“build settings”后解决,方法是修改VALID_ARCHS,在里面增加x86_64。