【问题标题】:Google App Indexing: GSDDeepLink call causes build to failGoogle App Indexing:GSDDeepLink 调用导致构建失败
【发布时间】:2015-07-31 17:08:32
【问题描述】:

我正在尝试按照 Google 的说明 here 为 Google App Indexing 设置我的应用。在我的 AppDelegate 中实现 GSDDeepLink 调用后,我在尝试构建时收到此错误:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_GSDDeepLink", referenced from:
      type metadata accessor for ObjectiveC.GSDDeepLink in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

当我注释掉我的 GSDDeepLink 调用时,它会构建。有谁知道如何解决这个问题?

【问题讨论】:

    标签: ios objective-c xcode swift cocoapods


    【解决方案1】:

    尝试将 Build Settings->Linking->Other Linker Flags 中的值更改为此。

    $(继承)

    -ObjC

    -框架

    “核心文本”

    “GoogleAppIndexing”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      • 1970-01-01
      • 2018-04-08
      • 2020-11-15
      • 1970-01-01
      • 2015-09-05
      • 1970-01-01
      相关资源
      最近更新 更多