Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

- Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error

I've been running into a couple of strange errors in terminal when updating cocoapods after updating a Switf2 project to Swift3. Here are the errors:

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

So far I've tried numerous ways to try and remedy the issue including deleting derived data and running pod deintegrate/ pod install. I also added $(inherited) to the Other Linker Flags and Header Search Paths but still get the error.

like image 803
SwiftyJD Avatar asked Nov 14 '16 23:11

SwiftyJD


People also ask

How do I add a pod to Swiftui?

The Pod file is located in the folder of your app. If there is no Pod file yet type the command: pod init in the terminal first. Make sure to cd into your app folder first. If this throws errors try to rebuild it by pressing on your keyboard Command+B.


2 Answers

  1. Target - > building settings- >ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES, Value type is Boolean, click on the other, change the value to $(inherited)
  2. perform - pod update
  3. Done
like image 154
Tim Avatar answered Oct 14 '22 17:10

Tim


This worked for me:

https://github.com/CocoaPods/CocoaPods/issues/5981#issuecomment-363591574

  1. Go to Build Settings
  2. Search for "Runpath Search Paths".
  3. Double click the value field and add $(inherited)
  4. Product -> Clean Build Folder

Run the cocoapods command in the terminal and things should go fine this time.

like image 42
thechargedneutron Avatar answered Oct 14 '22 19:10

thechargedneutron