首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >集成weex后Xcode 9编译错误

集成weex后Xcode 9编译错误
EN

Stack Overflow用户
提问于 2017-09-25 09:26:27
回答 1查看 666关注 0票数 2

我用Xcode 9自己构建了WeexSDK.framework,然后将框架集成到我的项目中。在构建我的应用程序时有奇怪的编译错误日志,有人能帮我吗?

代码语言:javascript
复制
Undefined symbols for architecture arm64:
  "___llvm_profile_runtime", referenced from:
      ___llvm_profile_runtime_user in WeexSDK(WXDisplayQueue.o)
      ___llvm_profile_runtime_user in WeexSDK(WXResourceRequestHandlerDefaultImpl.o)
      ___llvm_profile_runtime_user in WeexSDK(WXSwitchComponent.o)
      ___llvm_profile_runtime_user in WeexSDK(WXRootView.o)
      ___llvm_profile_runtime_user in WeexSDK(WXRecyclerUpdateController.o)
      ___llvm_profile_runtime_user in WeexSDK(WXRecyclerComponent.o)
      ___llvm_profile_runtime_user in WeexSDK(WXThreadSafeMutableDictionary.o)
      ...
     (maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-27 00:49:59

-fprofile-instr-generate添加到其他链接器标志解决了编译错误。

票数 10
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46401803

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档