Question

I entered the mysterious phenomenon that I can build my app for simulator but I can't build for real device. The error is as below (which doesn't appear when build for simulator):

ld: library not found for -lPods-TechMoviePlus
clang: error: linker command failed with exit code 1 (use -v to see invocation)

(I'm using Cocoapods and attach one of my app's targets, so that the name of library is a little different.)

Project > Target > General > Linked Frameworks and Libraries is as below:

enter image description here

Thank you for your kindness!

Was it helpful?

Solution

Assigning the target in Podfile has resolved the problem.

target :TechMoviePlus do
  pod "AFNetworking", "~> 2.0"
  pod "LBGIFImage"
end

OTHER TIPS

Open your pbxproj file with an editor and check for references to Pods-Application. If you renamed your application after pod install, you may have some references to the old pods. Remove all the references to Pods-Application, launch xcode, full clean, and build. It worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top