我正试图消除在Xcode(8.3)中出现的警告:
warning: using 'ALWAYS_SEARCH_USER_PATHS = YES' while building targets which define modules ('DEFINES_MODULE = YES') may fail. Please migrate to using 'ALWAYS_SEARCH_USER_PATHS = NO'.
当我在目标的构建设置中将'ALWAYS_SEARCH_USER_PATHS'
更改为NO
时,警告消失了。但是当我运行pod install
时,我会得到额外的警告:[!] The `AppName [Release]` target overrides the `ALWAYS_SEARCH_USER_PATHS` build setting defined in `Pods/Target Support Files/Pods-AppName/Pods-AppName.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
确实,当我查看 Pods/Target Support Files/Pods-AppName/Pods-AppName.release.xcconfig
文件时,发现 ALWAYS_SEARCH_USER_PATHS = YES
已存在,但我不确定它是怎么来的或者那个文件从哪里来。
有人知道如何解决这些错误吗?谢谢。
YES
,所以我仍然会收到相同的Xcode警告。 - Lee Kang