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
作者:link_hui
链接:https://www.jianshu.com/p/91cae683a3f2
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。