Running pod install
gives the following warnings:
[!] The `<project name> [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `<.xcconfig location>'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
If you manually set the project setting to $(inherited)
or remove the setting then xcode will ask you to update the project to recommended settings.
Is there a way to silence this warning if Xcode requires the setting to be YES in certain cases?
Every time I run pod install/update
I see the same warning.
CocoaPods : 1.1.0.rc.2
Ruby : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
RubyGems : 2.5.1
Host : Mac OS X 10.12 (16A319)
Xcode : 8.0 (8A218a)
Git : git version 2.8.4 (Apple Git-73)
Ruby lib dir : /Users/luke/.rbenv/versions/2.3.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 0bc2638d6e7f807e304464a2f79f9ef64b4cff7c
Executable Path: /Users/luke/.rbenv/versions/2.3.1/bin/pod
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.0.0
cocoapods-try : 1.1.0
You should remove those settings from your targets that CocoaPods integrates, since CocoaPods sets them for you.
It'll set them appropriately based on whether or not the target its integrating contains Swift and/or the pods its integrating contain Swift.
Deleting the options does not seem to work. Xcode wants to set them explicitly and will show this as a warning every time. Also, EMBEDDED_CONTENT_CONTAINS_SWIFT is now obsolete in Xcode 8 (swift 3 only?).
In Xcode 8 it's deprecated for 2.3 and 3. Hm. Try deleting the settings, quitting Xcode, pod install
ing, and then starting Xcode?
Just to update, the fix is being worked on in #5933.
The fix here was merged in #5933/#6016 and will be available in an upcoming release. Thanks for filing!
I was able to fix this problem by doing the following:
This worked for me
_...then_
_...then_
_...then_
Cleared and green:
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.
I tried clearing the error via terminal but no go, the CocoaPods app is way friendlier at adding pods and reporting errors.
when I import SDWebImage in my project second time,It worn that Module FLAnimatedImage not found,and when I pod install ,it warn "... ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES ... - Use the $(inherited)
flag, or - Remove the build settings from the target."
At last, I find the way that remove the SD completely,specialy in the finder ,in the pods' products,and delete the project in the simulator , then import SD again.
Helped
I was getting below errors:
[!] The
myApp [Debug]target overrides the `LD_RUNPATH_SEARCH_PATHS
build setting defined in Pods/Target Support Files/Pods-myApp/Pods-myApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the
$(inherited)` flag, or
- Remove the build settings from the target.
[!] The myApp [Release]
target overrides the LD_RUNPATH_SEARCH_PATHS
build setting defined in Pods/Target Support Files/Pods-myApp/Pods-myApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the
$(inherited)flag, or
- Remove the build settings from the target.
what worked for me - based on error messages above, I figured some Run Path/Search path build setting of my app overriding the Pods build setting. Went to xcode, and made below changes to my app's build settings
from Xcode top menu, Product -> Clean
And pod install again now worked with no error:
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
@b-tiwari great!! It worked for me.
Most helpful comment
I was able to fix this problem by doing the following: