What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8
Go here in your build settings...
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,
- Go to the project's Pbxproj file (open in VSCode or any editor)
- Search and remove all mentions
of ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES - 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
- Target - > building settings- >
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
, Value type is Boolean, click on the other, change the value to$(inherited)
- perform - pod update
- Done
Cocoapods 1.1.1 target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`
I was able to fix this problem by doing the following:
- Go into Build Settings
- At the top select All and Combined
- Under Build Options you should see Always Embed Swift Standard Libraries and it is bold.
- Click on it and click delete. It should now be unbolded.
- 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.
Related Topics
Swift Regex: Does a String Match a Pattern
How to Get Indexpath in Prepareforsegue
How Does One Print All Wkwebview on and Offscreen Content Osx and iOS
When Will Applicationwillterminate Be Called
How to Set Uiviewcontroller "Extend Edges" Properties
Check If App Is Ad-Hoc|Dev|App-Store Build at Run Time
iOS Find Color at Point Between Two Colors
Adding Click Event on Infowindow/Marker in Google Maps Sdk for Native iOS/Objective C
Swift iOS Add Infinite Scroll Pagination to Uitableview
Allowing Single Digit in Uitextfield in iOS
How to Detect Call Incoming Programmatically
How to Create and Save Ekcalendar on iOS 6
Swift 3 Objc Optional Protocol Method Not Called in Subclass
Saving Coredata To-Many Relationships in Swift
How to Add My App to the Share Sheet Action
Sudzc Arc Version - Objc_Msgsend Call Causes Exc_Bad_Access Using 64-Bit Architecture