Cocoapods 1.1.1 target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`

cocoapods target overrides the other_ldflags
cocoapods test target
update ios build setting always_embed_swift_standard_libraries to yes
target support files
react native use the `$(inherited)` flag, or - remove the build settings from the target.
unable to open file in target bolts in project pods in target bolts
podfile inherited
what are cocoapods

I have updated to cocoapods 1.1.1 for my XCode 8 Swift 2.0 project and now I'm getting the warning "...target overrides the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES ..." in the console. How can I fix this?

Here my podfile

platform :ios, '9.0'
use_frameworks!

def app_pods
 pod 'Alamofire', '~> 4.0.0'
 pod 'AlamofireObjectMapper','~> 4.0.0'
 pod 'RealmSwift', '~> 2.0.2'
 pod 'KeychainAccess', '~> 3.0.0'
 pod 'ReachabilitySwift', '~> 3'
 pod 'SwiftyBeaver', '~> 1.0.1'
 pod 'GoogleAnalytics', '~> 3.17.0'
end

def unit_tests
 app_pods
 pod 'OHHTTPStubs', '~> 5.2.1'
 pod 'OHHTTPStubs/Swift', '~> 5.2.1'
end 


target 'Demo' do
 app_pods
end

target 'App1' do
 app_pods
end

target 'App2' do
 app_pods
end

target 'DemoTests' do
 unit_tests
end

target 'App1Tests' do
 unit_tests
end

target 'App2Tests' do
 unit_tests
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
end

I was able to fix this problem by doing the following:

  1. Go into Build Settings
  2. At the top select All and Combined
  3. Under Build Options you should see Always Embed Swift Standard Libraries and it is bold.
  4. Click on it and click delete. It should now be unbolded.
  5. Pod install and the error/errors should go away!

It wont let me post an image because i don't have enough reputation, so here is a detailed screen shot link!

https://cloud.githubusercontent.com/assets/17066507/21532583/93df897e-cd1f-11e6-9f17-d25cb81a2a53.png

Running pod install gives the following warnings: [!] The `<project name> [​Release]` target overrides the `  The `ProjectA [Release]` target overrides the `SWIFT_VERSION` build setting defined in `Pods/Target Support Files/Pods-ProjectA/Pods-ProjectA.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$ (inherited)` flag, or - Remove the build settings from the target. Pod File.

This issue has been fixed in the following pull request https://github.com/CocoaPods/CocoaPods/pull/6068 and it should be out in cocoapods version 1.1.2 . I got the info from the following github issue https://github.com/CocoaPods/CocoaPods/issues/6067

Before you start, are you using the CocoaPods beta. The `ProjectA [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support cocoapods-trunk : 1.1.1 The target overrides the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES build setting defined in Pods/Target Support Files/…. This can lead to problems with the CocoaPods installation. The warning message then gives the following two suggestions: Use the $(inherited) flag, or. Remove the build settings from the target.

The accepted solution works, but now you have to make sure all of your teammates are performing it each pod install.

And we all know they won't.

You could make CococaPods do it automatically, by adding this to the bottom of your Podfile:

post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            if config.name == 'MyPOD' 
                config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'Yes'
            end
        end
    end
end

More info here: https://www.devsbedevin.net/cocoapods-always-embed-swift-standard-libraries/

cocoapods 1.1.1 for my XCode 8 Swift 2.0 project and now I'm getting the warning "target overrides the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES  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. [!]

I am creating a Swift app and am having trouble using Cocoa pods and decided The `$MyAppTests [Release]` target overrides the `​ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` Make sure you are on the latest CocoaPods (1.1.1). Swift standard libraries embedding explicitly set to NO by CocoaPods #6064 Closed wiedem opened this issue Oct 21, 2016 · 11 comments · Fixed by #6069

Run 'pod install' or update your CocoaPods installation. The `my-Project [​Debug]` target overrides the `​ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`  PopupDialog will always try to have a max width of 340 . On iPhones with smaller screens, like iPhone 5 SE, width would be 320. 340 is also the standard width for iPads. By setting preferredWidth you can override the max width of 340 for iPads only. Gesture Dismissal

When you run pod install , Cocoapods shows the following warning (usually this happens [Debug]` target overrides the. Index 1.1.1. ×. Maintained by Brenno de Moura. Installation Guide. ×. Installation Guide for Index. You want to add pod 'Index', '~> 1.1' similar to the following to your Podfile: target 'MyApp' do pod 'Index', '~> 1.1' end. Then run a pod install inside your terminal, or from CocoaPods.app.