集成weex sdk后,Xcode 9编译错误

时间:2017-09-25 09:26:28

标签: xcode xcode9 weex

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

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)

1 个答案:

答案 0 :(得分:10)

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