vesselin ivanov
vesselin ivanov

Reputation: 73

Xcode product archive error

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?

Upvotes: 0

Views: 613

Answers (1)

Himanth
Himanth

Reputation: 2446

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

Upvotes: 1

Related Questions