将库添加到项目后,iOS _OBJC_CLASS错误

时间:2017-01-17 07:45:18

标签: ios xcode payumoney

我正在尝试将PayU money sdk添加到我的项目中。添加libiOSCustomBrowser.a文件后,它会出错:

    ld: warning: directory not found for option '-L/Users/Jenaveve/myApp/Utilities/PayUSdk'
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_WKUserContentController", referenced from:
      objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in libiOSCustomBrowser.a(PUCBMagicRetry.o)
      objc-class-ref in libiOSCustomBrowser.a(PUCBBaseConnection.o)
      objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
      objc-class-ref in libiOSCustomBrowser.a(CBWKConnection.o)
  "_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
      objc-class-ref in libiOSCustomBrowser.a(PUCBWebVC.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在构建阶段,在Link Binary with Libraries中,此引用存在。有什么问题?

1 个答案:

答案 0 :(得分:0)

也许该库不支持x86_64架构。 在

中删除x86_64架构

'构建设置 - >有效的架构'

并重建。