【问题标题】:Google Admob Sdk 6.0.0 "not found for architecture arm64" errorGoogle Admob Sdk 6.0.0“未找到架构 arm64”错误
【发布时间】:2021-08-25 18:24:22
【问题描述】:

Xcode 错误:

    Undefined symbols for architecture arm64:
  "_GADURequestInterstitial", referenced from:
      _Externs_GADURequestInterstitial_m77D58C1021B0E1A9320F3326857B18C58380315E in GoogleMobileAds.iOS.o
     (maybe you meant: _Externs_GADURequestInterstitial_m77D58C1021B0E1A9320F3326857B18C58380315E)
ld: symbol(s) not found for architecture arm64

Pod 文件:

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '11.0'

target 'UnityFramework' do
  pod 'Firebase/Analytics', '7.11.0'
  pod 'Firebase/Core', '7.11.0'
  pod 'Google-Mobile-Ads-SDK', '~> 8.2'
end
target 'Unity-iPhone' do
end
use_frameworks! :linkage => :static

我使用 Google 移动广告 Unity 插件 v6.0.0

在游戏中安装firebase插件并安装admob最新版本后,我开始遇到这个问题

我该如何解决这个问题?

【问题讨论】:

    标签: ios xcode firebase unity3d admob


    【解决方案1】:

    检查 Unity 中的 Build 设置,我相信 arm64 在某些环境中可能会被错误分配。此外,如果缺少某些内容,再次重新导入模块及其依赖项可以解决。

    【讨论】:

    • ios build时出现此问题
    • 你也在为 Android 构建吗?
    • 是的,我正在为 android 和 ios 构建版本
    【解决方案2】:

    Unity 和 EDM4U 默认添加 use_frameworks! 似乎存在一些问题。尝试删除该行并查看它是否链接成功。如果是这样,请取消选中 use_frameworks!资产 -> 外部依赖管理器 -> iOS 设置下 EDM4U 设置中的选项

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-08
      • 1970-01-01
      • 1970-01-01
      • 2018-08-16
      • 1970-01-01
      • 2019-10-03
      • 1970-01-01
      相关资源
      最近更新 更多