Contents
  1. 1. Library not found for -lPods
  2. 2. $(inherited)

I’m changing an old Objective C project to build with Xcode 7 and support 64bit. As you already know, iOS is moving really fast and there’s more requirements added every year

My app uses HockeySDK and Crashlytics, so I use Cocoapods to streamline the process.

After pod install

1
2
3
pod 'HockeySDK', '~> 3.8'
pod 'Fabric', '~> 1.5'
pod 'Crashlytics', '~> 3.3'

For now, Crashlytics podspec does not declare that it depends on Fabric, but in fact it does. So we need to to declare Fabric

Library not found for -lPods

Firstly, I get this famous linker error Library not found for -lPods

Most of the time, it is because our app can’t link against the library that Cocoapods has generated

I outline many solutions here Library not found for -lPods

$(inherited)

In my case, my fixes are to add $(inherited) to the following places in target Build Settings

  • FRAMEWORK_SEARCH_PATHS (Framework Search Paths)
  • HEADER_SEARCH_PATHS (Header Search Paths)
  • LIBRARY_SEARCH_PATHS (Library Search Paths)
  • OTHER_LDFLAGS (Other Linker Flags)
  • GCC_PREPROCESSOR_DEFINITIONS (Preprocessor Macros)

And

Ensure that Build Active Architectures Only settings for both of your project and the Pods project were equal for debug and release configuration!

Since Cocoapods target sets Debug configuration to NO, so I have to set my app target Debug configuration to NO, too

Contents
  1. 1. Library not found for -lPods
  2. 2. $(inherited)