Issue #1:
Pod install only set the pods configuration file for the first target. If you have more
than one target, build the project, you’ll get error “Library not found”. There are two ways to fix it.
Solution one, project ->info ->configurations , manually select the configuration file for each target.
Solution two, add following lines into your podfile:
(http://guides.cocoapods.org/using/the-podfile.html)
post_install do |installer|
installer.project.targets.each do |target|
puts target.name
end
end
Issue #2:
Do pod install, if see warning like this:
“… target override the ‘OTHER_LIDFLAGS’ build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig’. This can lead to problems with the CocoaPods installation
– Use the `$(inherited)` flag, or –Remove the build settings from the target.”
That means, the value of “ OTHER_LIDFLAGS” in your app target is different from pod target. To fix this, just go to project ->build setting, for “Other Linker Flags”, add a value “$(inherited)”, or, if you want to use the value in pod target build settings, just remove all values for “Other Linker Flags” in your app build settings.
OTHER_LIDFLAGS means Other Linker Flags
OTHER_CFLAGS means Other C Flags
GCC_PREPROCESSOR_DEFINITIONS means Preprocessor Macros
HEADER_SEARCH_PATHS means Header Search Paths