0

我正在尝试将 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 中,存在此引用。怎么了?

4

1 回答 1

0

也许该库不支持 x86_64 架构。删除 x86_64 架构

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

并重建。

于 2017-01-17T07:58:25.810 回答