美文网首页大前端开发
一个xcode的link问题解决(profile-instr-g

一个xcode的link问题解决(profile-instr-g

作者: link_hui | 来源:发表于2017-12-11 19:09 被阅读50次

xcode编译链接的时候遇到下面这个问题。


image.png

解决方法是:Other Linker Flags里加一下这个-fprofile-instr-generate

查了一下关于profile-instr-generate的说明如下:

-fprofile-instr-generate=<file>
                          Generate instrumented code to collect execution counts into <file>
                          (overridden by LLVM_PROFILE_FILE env var)
  -fprofile-instr-generate
                          Generate instrumented code to collect execution counts into default.profraw file
                          (overridden by '=' form of option or LLVM_PROFILE_FILE env var)

参考文档:profiling-with-instrumentation

相关文章

网友评论

    本文标题:一个xcode的link问题解决(profile-instr-g

    本文链接:https://www.haomeiwen.com/subject/urlwixtx.html