Xcode 9自编Weex SDK集成到App中编译报错-fprofile-instr-generate

在集成SDK的时候报错

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:
已经解决,Other Linker Flags中添加-fprofile-instr-generate就可以了。

你可能感兴趣的:(Xcode 9自编Weex SDK集成到App中编译报错-fprofile-instr-generate)