Reputation:
I am getting the following error when trying to build a project I found on GitHub.
ld: library not found for -lPod
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've heard of some people saying to use the workspace file instead of the workspace file but there is no project file.
Here is the project
Upvotes: 1
Views: 1372
Reputation: 377
My app can run on simulator but can't run on device.
I fixed this by these steps.
http://guides.cocoapods.org/using/troubleshooting.html
All my pods project have debug build only active architecture to YES(from pod install), but my project set to NO. So, I change it to YES, then it's work.
Upvotes: 2
Reputation:
I got it working, all I had to do was simply drag the Pods.xcodeproj into the TestOCR.xcodeproj thanks for the help.
Upvotes: 1
Reputation: 6990
This project uses Cocoapods to manage its third party dependencies. Whilst the developer has committed the Pods/
directory, it's probably best to install the Pods yourself:
sudo gem install cocoapods
cd
into the top level project directory, and install the required Pods for this project: pod install
TestOCR.xcworkspace
that will be created.Upvotes: 1
Reputation: 1225
I have encountered this issue couple of times and the common fix is to simply build the Pods target.
The project seems to have bad CocoaPods configuration (or not at all). There is no workspace and no Podfile (which is even worse, because if there's a Podfile you can install CocoaPods by your own and update pods).
You can look into Pods directory and try to create Podfile from scratch (depending on found libraries) and the install CocoaPods. This should work.
Upvotes: 0