Error when setting Podfile

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
Copied from : https://miafish.wordpress.com

Nhận xét

Bài đăng phổ biến