主要原因就是pods没有找对对应的目标project,就是所谓的$(inherited),利用下面的步骤完美解决。
I just had the same issue. The "Other Linker Flags" was overriding the flags from CocoaPods. In fact I got a warning about it-
[!] The `sftest [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-sftest/Pods-sftest.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Changing "Other Linker Flags" to $(inherited) did indeed solve the problem.
来自:http://stackoverflow.com/questions/26335016/cocoapods-ld-symbols-not-found-for-architecture-armv7s