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

Kin*_*Lin 2 xcode weex xcode9

我自己用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)
Run Code Online (Sandbox Code Playgroud)

Kin*_*Lin 10

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