Undefined symbols for architecture i386 Upgrading project to iOS 5

前端 未结 6 1147
忘掉有多难
忘掉有多难 2020-12-30 01:51

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

相关标签:
6条回答
  • 2020-12-30 02:15

    This worked for me well (catch the settings with bold):

    enter image description here

    0 讨论(0)
  • 2020-12-30 02:28

    I Had the same error : Just add "libGoogleAnalyticsServices.a" into your files

    0 讨论(0)
  • 2020-12-30 02:34

    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
    
    0 讨论(0)
  • 2020-12-30 02:36

    In my case I was building for device. Switching to simulator worked like charm, but I have no clue why it is different. :-)

    0 讨论(0)
  • 2020-12-30 02:39

    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/

    0 讨论(0)
  • 2020-12-30 02:40

    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.

    0 讨论(0)
提交回复
热议问题