I\'ve been scouring SO and Google but haven\'t found anything helpful yet.
We\'re updating our existing iOS project to build against iOS 5.
Our project has t
This worked for me well (catch the settings with bold):
I Had the same error : Just add "libGoogleAnalyticsServices.a" into your files
If you don't need the code coverage, you can complete disable it by using the following settings, thus avoiding the attempted calls to those functions.
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
GCC_GENERATE_TEST_COVERAGE_FILES = NO
In my case I was building for device. Switching to simulator worked like charm, but I have no clue why it is different. :-)
In my case, I had to add --coverage
to the CMAKE_EXE_LINKER_FLAGS
on Apple Clang Apple LLVM version 9.0.0 (clang-900.0.39.2)
. That seems to have fixed it.
None of the above solutions worked.
The article below mentions it:
https://asmaloney.com/2017/01/code/code-coverage-of-unit-tests-using-qt-5-on-macos/
llvm_gcda_start_file and co are added by LLVM compiler for code coverage and unit testing.
adding -lprofile_rt to Linker Flags in your project settings should solve this error. (older tutorial might suggest -lgcov which is for Xcode 3 and GCC)
According to Code Coverage on Xcode 4.4.1 "-lprofile_rt" is no longer required.