cocapods `HEADER_SEARCH_PATHS` `OTHER_CFLAGS`的问题

来源:互联网 发布:上海长期租车价格 知乎 编辑:程序博客网 时间:2024/06/04 01:38

今天在用cocapods的时候遇到以下问题

[!] The `Unity-iPhone [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation


[!] The `Unity-iPhone [Release]` target overrides the `OTHER_CFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation


得到以下解决方法

对于 OTHER_CFLAGS

target->Build Settings -> Other linker flags ->靠右边双击 . 添加一行$(inherited)




同理对于HEADER_SEARCH_PATHS 在target->Build Settings -> Search Paths-> Header Search Paths->靠右边双击 . 添加一行$(inherited)


如果还有 GCC_PREPROCESSOR_DEFINITIONS 

对应的是

  1. Preprocessor Macros

1 0