【问题标题】:Compile errors with segment.io after Xcode 5.1 updateXcode 5.1 更新后使用 segment.io 编译错误
【发布时间】:2014-03-18 16:26:09
【问题描述】:

更新到 Xcode 5.1 后,收到编译错误:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_LocalyticsSession", referenced from:
      objc-class-ref in Analytics(LocalyticsProvider.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

【问题讨论】:

    标签: ios xcode5.1


    【解决方案1】:

    Segment.io 通过更新 0.10.1 发布了此问题的解决方案 - 只需将新版本的框架添加到您的 Xcode 项目中:https://github.com/segmentio/analytics-ios/issues/98

    【讨论】:

      【解决方案2】:

      @snibbe,这似乎仍在使用latest built SDK 发生(根据manual installation instructions):

      Undefined symbols for architecture i386:
        "_OBJC_CLASS_$_Localytics", referenced from:
            objc-class-ref in Analytics(SEGLocalyticsIntegration.o)
      

      我已经包含了所有必需的框架。

      【讨论】:

        【解决方案3】:

        放这个

        libLocalyticsAMP_x64.a
        

        而不是在你的框架中使用这个

        libLocalyticsAMP.a
        

        【讨论】:

          猜你喜欢
          • 2013-01-13
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-04-15
          • 1970-01-01
          • 1970-01-01
          • 2023-03-04
          相关资源
          最近更新 更多