iOS on Rails - Library not found for -lPods

I’m not sure if the correct place to post this, but I’m running into an issue when trying to build the application in the iOS on Rails book. I’m completely new to iOS development so I’m very lost with this error. Can anyone assist?

I’m getting this error the first time it has me run the application in this section ios-on-rails/ at master · thoughtbot/ios-on-rails · GitHub

Ld /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/ normal i386
    cd /Users/nicolo/projects/Humon-iOS
    export PATH="/Applications/"
    /Applications/ -arch i386 -isysroot /Applications/ -L/Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Products/Beta-iphonesimulator -L/Users/nicolo/projects/Humon-iOS/Pods/TestFlightSDK -F/Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Products/Beta-iphonesimulator -F/Users/nicolo/projects/Humon-iOS/Pods/Parse -filelist /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/ -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lTestFlight -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework MobileCoreServices -framework Parse -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework Accounts -weak_framework AdSupport -weak_framework Security -weak_framework Social -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework MapKit -framework CoreGraphics -framework CoreData -framework UIKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/ -o /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/

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

It looks like you haven’t installed the Pods (the dependencies). Make sure you have CocoaPods installed ( and then run pod in the terminal while in the project directory. This should install all the missing dependencies and create a workspace file that you should use instead of the project file when opening the project in Xcode. When you open the workspace you will see 2 projects: the Humon-iOS and Pods. Run the project and it should work fine. Let me know if you have any other errors or if any of the steps above are unclear.


I ran pod in the terminal in the project directory and received this output

\Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.2.2)
Using Facebook-iOS-SDK (3.13.1)
Using Kiwi (2.2.4)
Using Parse (1.2.19)
Using SSKeychain (1.2.2)
Using SVProgressHUD (1.0)
Using TestFlightSDK (2.2.3-beta)
Generating Pods project
Integrating client project

I don’t see a Pods project, but I do see Pods.xcoconfig and Pods-Humon-iOSTest.xconfig in my

That’s perfect. After that output it should create a .xcworkspace file. Open that file in Xcode instead of the .xcodeproj file. Use the workspace file for development after that. No need to open the project file anymore. When you open the workspace file you will see the 2 projects, the second one being the Pods project.

That did it. Thanks.