【问题标题】:Xcode 4 error SDK authorize.netXcode 4 错误 SDK authorize.net
【发布时间】:2012-01-23 21:23:53
【问题描述】:

尝试使用 Xcode 进行编译时,出现以下错误: 架构 i386 的未定义符号: “_OBJC_CLASS_$_AuthNet”,引用自: ConnectionManager.o 中的 objc-class-ref ld:未找到体系结构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我正在使用 SDK authorize.net

请帮忙!!

【问题讨论】:

    标签: objective-c


    【解决方案1】:

    您尚未将库链接到您的应用程序。从导航器侧边栏中选择项目,选择您的目标,然后转到 Build Phases 部分。在 Link Binary With Libraries 下,添加 AuthNet 库。

    【讨论】:

      【解决方案2】:

      听起来您没有正确包含库。

      确保您遵循以下每一条说明:

      Set your Library Search Paths with the path that contains the "Authorize.Net SDK" 
      library. (ex. "$(SRCROOT)/ANMobilePaymentLib").
      
      Set your Other Linker Flags with "-lxml2" to allow for xml parsing.
      
      Set your Header Search Paths with the path that contains "libxml2" header 
      files. (ex. "/usr/include/libxml2" with recursive checked).
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-04-25
        • 2012-06-04
        • 1970-01-01
        • 2023-03-13
        • 2014-07-25
        • 1970-01-01
        • 1970-01-01
        • 2023-04-04
        相关资源
        最近更新 更多