After Xcode upgrade to 6.0, update CocoaPods, the following warning appears
[!] The `Paopao [Debug]` target overrides the `PODS_ROOT` 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. [!] The `Paopao [Debug]` target overrides the `OTHER_LDFLAGS` 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.
[!] The `Paopao [Release]` target overrides the `PODS_ROOT` build setting defined
in `Pods/Target Support Files/Pods/Pods.release.xcconfig‘. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings
from
the target.
[!] The `Paopao [Release]` target overrides the `OTHER_LDFLAGS` build setting defined
in
`Pods/Target Support Files/Pods/Pods.release.xcconfig‘. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings
from
the target.
|
Such warnings cannot be overlooked, and the immediate consequence is that they cannot be compiled.
The reason for this warning is that some of the settings in the Target of the project, CocoaPods also made the default settings, if the two settings results inconsistent, it will cause problems.
I want to use the settings in CocoaPods to define ' pods_root ' and ' other Linker Flags ' in my project, replace their values with ' $ (inherited) ', go to the terminal, execute
The warning was gone, back to xcode,build through.
There's another simple, crude way to be popular online.
Click on project file Project.xcodeproj, right button ' show Package Contents ', open ' project.pbxproj ' with text editor, delete ' other_ldflags ' place, save, back to Xcode, compile through.
CocoaPods error Target overrides the ' other_ldflags ' ...