What's Always_Embed_Swift_Standard_Libraries with Cocoapods, Swift 3 and Xcode 8

What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8

Go here in your build settings...

Sample Image

And then highlight the "Always embed..." row and hit delete. This will change it to use the inherited property.

Even after you make this change it will remain there but it will probably change from bold to normal text. If that change happens then it is inherited.

Normal text = inherited.

Bold text = overridden.

Target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting warning in Xcode 12.5 and Swift 5

In some Xcode versions(in my case 12.2), when we create a new project with tests included, Xcode sets the "Always Embed Swift Standard Libraries" for tests and UITests to Yes and it would be shown in Bold text, which indicates its overridden

To confirm this,
check in your project's build settings and target's build settings if the "Always Embed Swift Standard Libraries" setting has been modified by Xcode.
Typically it should appear like this in Normal text (not bold) meaning its not modified.
Non modified build setting
Certain versions of Xcode modifies this setting and hence it would appear in Bold text
modified build setting

To resolve this,

  1. Go to the project's Pbxproj file (open in VSCode or any editor)
  2. Search and remove all mentions
    of ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
  3. On doing so, the project
    would take default settings for
    ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES.

Try pod install/pod update now and the build setting warning should no longer occur.

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

  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

Cocoapods 1.1.1 target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`

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

With Swift 5 and iOS 12.2+ should I change Always Embed Swift Standard Libraries to NO?

The default for new projects is NO and (as far as I know) always has been. I have never had "Always embed" set to YES, and my projects have always worked just fine. So unless there is some really good reason why this was YES, it probably shouldn't have been.

Note that the libraries are stripped out only if you are building against the 12.2 SDK and going onto a machine with 12.2 (or later). The libraries are still needed to run on a 12.1 or earlier machine.

Linker Error After Updating swift Version and pods

Update following things in your pod files:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

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

Xcode 8 Beta 3 Use Legacy Swift issue

I have been ignoring this problem for a while now and just working on other stuff in the meantime - I finally found the solution to my problem.

Since my project is Objective-C I figured maybe one of the Pods I am using was using Swift, I checked each Pod and none of them were.

The final solution was that my Core Data model was set to generate code in Swift even though I have been manually generating them in the File > New > NSManagedObjectSubclass menu. All I had to do was switch it to Objective-C.

screenshot



Related Topics



Leave a reply



Submit