Target overrides FRAMEWORK_SEARCH_PATHS settings

I would like to ask and then answer this question.

I want to update CocoaPods built into my application, so I ran pod install from the terminal.

This is when I received this error:

 [!] The `APP_NAME [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` 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. 

How do you use the $ (inherited) flag?

+42
objective-c cocoapods
Oct 18 '14 at 23:54
source share
2 answers

We selected the project, goals-> application, and then Build Settings , where I added the line $ (inherited), deleting any specific code there:

enter image description here

I hope this helps someone.

+83
Oct 18 '14 at 23:57
source share

I also ran into this problem.

In addition to what Peter mentioned above, be sure to double-check to see if the correct Xcode project is selected in your file . This is because you can change the build settings of the wrong Xcode project. It was a stupid mistake, but it took quite a while before I realized this.

Usually pod install works automatically if there is only one .xcodeproj file in the directory. However, if you transfer your project to start using cocoapods from the old way to manually add framework / third-party projects to your Xcode project, it is possible that there will be several .xcodeproj files in your folder. Performing the above fix did not solve it for me because I was editing the wrong .xcodeproj file.

Go to the project directory, check the file named Podfile and make sure you specify xcodeproj :

 # Uncomment this line to define a global platform for your project # platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! xcodeproj 'APP_NAME.xcodeproj' target 'APP_NAME' do # Your dependencies here # pod 'NAME_OF_DEPENDENCY' pod 'Google/CloudMessaging' pod 'RxSwift', '~> 2.0' pod 'RxCocoa', '~> 2.0' pod 'RxBlocking', '~> 2.0' pod 'Fabric' pod 'Crashlytics' pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' 

After choosing the correct .xcodeproj in your subfile, go to Xcode and follow these steps:

  • In the Project Navigator on the left, select your project.
  • On the center screen, go to Build Settings
  • Add filter for "Search Paths in Framework"
  • Enter $(inherited) as the value; it should automatically populate with data evaluating this expression

Below is an image of Xcode with version 7.2 (7C68).

Xcode preview

+10
Jan 22 '16 at 7:12
source share



All Articles