0

When I try to archive my project with Xcode I've got an error:

ld: library not found for -lReachability
clang: error: linker command failed with exit code  1

Can you help me how to fix that?

vesselin ivanov
  • 63
  • 1
  • 13

1 Answers1

1

You need to set the path that Xcode use to find your Reachability framework.

Create your search path like this

$(PROJECT_DIR)/../yourFramework/lib

and add it in Build Settings-> Framework Search Paths for both debug and release builds.

You can get the exact path from Finder get info.

Check the reference links

  1. Link
  2. Link
Himanth
  • 2,381
  • 3
  • 28
  • 41