当项目正常运行时,我尝试在模拟器中运行。但是,当我尝试归档项目时,出现了以下错误。代码太长。我只是把它的一部分。

duplicate symbol l017 in:
    GoogleMobileAds.framework/GoogleMobileAds(GADBannerAdViewDelegate.o)
    GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
duplicate symbol l018 in:
    GoogleMobileAds.framework/GoogleMobileAds(GADCSITimeRecorder.o)
  GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
duplicate symbol l008 in:
    GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttributionView.o)
    GoogleMobileAds.framework/GoogleMobileAds(GADPushTransitionView.o)
duplicate symbol l014 in:
    GoogleMobileAds.framework/GoogleMobileAds(GADPinger.o)
    GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o)
ld: 28 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


如何解决呢?

最佳答案

问题解决了通过删除“-ObjC”链接标志。

10-06 13:11