Xcode 8 dependency warning

I am trying to remove these warnings that appear in 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'. 

When I change 'ALWAYS_SEARCH_USER_PATHS' to NO in the settings of the target assembly, the warnings disappear. But then I get additional warnings when I run 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. 

Of course, when I look at Pods/Target Support Files/Pods-AppName/Pods-AppName.release.xcconfig , ALWAYS_SEARCH_USER_PATHS = YES is, and I'm not sure how it got there or where this file came from.

Does anyone know how to get rid of these errors? Thanks.

+7
ios xcode xcode8 cocoapods
source share
2 answers

Xcode 8.3 that ALWAYS_SEARCH_USER_PATHS is now not recommended :

The Always Search Custom Paths build option is deprecated and may not be supported by a future version of Xcode. Projects that rely on this feature should transfer to a separate user and system header, including semantics, and set this build option to None. (16364329)

Validation: https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html

+6
source share

Starting with version Xcode 8.3, ALWAYS_SEARCH_USER_PATHS is now deprecated, but other libraries that still use ALWAYS_SEARCH_USER_PATHS put the parameter value in your project, you will have to wait until other libraries make changes too.

For example, the current Core Plot is on version 2.2, it still sets the value ALWAYS_SEARCH_USER_PATHS in my project, a fix for this warning will be released in version 2.3

+3
source share

All Articles