解决CocoaPods目标会覆盖编译器的警告

时间:2014-11-20 05:48:17

标签: ios xcode cocoapods

我正在使用CocoaPods并收到以下警告。该错误表示将默认设置更改为$(继承),但这对于这些目标是不可能的。您只能从选项列表中进行选择。一切似乎都在起作用,所以我很高兴忽略这些警告,但如果有人能说出一些亮点,我会很感激!

[!] The `VitogoTests [Debug]` target overrides the `CLANG_CXX_LANGUAGE_STANDARD` build setting defined in `Pods/Target Support Files/Pods-VitogoTests/Pods-VitogoTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `VitogoTests [Debug]` target overrides the `CLANG_CXX_LIBRARY` build setting defined in `Pods/Target Support Files/Pods-VitogoTests/Pods-VitogoTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `VitogoTests [Release]` target overrides the `CLANG_CXX_LANGUAGE_STANDARD` build setting defined in `Pods/Target Support Files/Pods-VitogoTests/Pods-VitogoTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `VitogoTests [Release]` target overrides the `CLANG_CXX_LIBRARY` build setting defined in `Pods/Target Support Files/Pods-VitogoTests/Pods-VitogoTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

1 个答案:

答案 0 :(得分:2)

我无法肯定地说,但是根据我的研究,这些警告来自于cocoapods的一个错误,所以忽略它们是安全的。