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/map_view_controller.md at master · thoughtbot/ios-on-rails · GitHub

Ld /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/Humon-iOS.build/Beta-iphonesimulator/Humon-iOS.build/Objects-normal/i386/Humon-iOS normal i386
    cd /Users/nicolo/projects/Humon-iOS
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -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/Humon-iOS.build/Beta-iphonesimulator/Humon-iOS.build/Objects-normal/i386/Humon-iOS.LinkFileList -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/Humon-iOS.build/Beta-iphonesimulator/Humon-iOS.build/Objects-normal/i386/Humon-iOS_dependency_info.dat -o /Users/nicolo/Library/Developer/Xcode/DerivedData/Humon-iOS-bstinnxvapukphdkllieypwnnpkq/Build/Intermediates/Humon-iOS.build/Beta-iphonesimulator/Humon-iOS.build/Objects-normal/i386/Humon-iOS

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 (http://cocoapods.org/) 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.

Tony

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.