Why am I getting a 'Library not found' error in Xcode during integration?

You may see an error in Xcode such as:

ld: library not found for -lCrittercism_v5_3_0 (or whichever version you're using)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

More often than not you are experiencing this issue because Xcode is unable to find the location of the library. You will need to tell Xcode where they are by adding the right directory to the Library Search Paths in Xcode for linking. 

You may set the path that Xcode needs in Built Settings > Search Paths > Library Search Paths (both Debug and Release). 

rtaImage-2.png

If you have multiple targets in your project, Apteligent might only be integrated with just one of them. In this case you may have to manually link them for each additional target.

Please also note that when you copy or duplicate a target, Xcode sometimes escapes double quotes " with a \. In this case, just remove all the \ and everything should return to normal.

Have more questions? Submit a request

0 Comments

Article is closed for comments.