xcode library not found

后端 未结 12 854
南方客
南方客 2020-12-05 12:43

I\'m getting the following error:

ld: library not found for -lGoogleAnalytics clang: error: linker command failed with exit code 1 (use -v to see in

12条回答
  •  [愿得一人]
    2020-12-05 13:12

    You need to set the "linker search paths" of the project (for both Debug and Release builds). If this library was in, say, a sibling directory to the project then you can set it like this:

    $(PROJECT_DIR)/../GoogleAnalytics/lib

    (you want to avoid using an absolute path, instead keep the library directory relative to the project).

提交回复
热议问题