Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

after installing cocoapods and adding pod "SwiftCarousel" to pod file and uncomment the platform :ios, '9.0' I got this ERROR

ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES

and what should I do?

mohammed.elias$ pod install

Analyzing dependencies
Downloading dependencies
Installing SwiftCarousel (0.8.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `scrollView.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

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

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

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

[!] The `scrollViewUITests [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-scrollViewUITests/Pods-scrollViewUITests.release.xcconfig'. This can lead to problems with the CocoaPods installation
like image 455
MEH Avatar asked Jan 10 '17 13:01

MEH


People also ask

What is CocoaPods Xcode?

Cocoapods is an application level dependency manager that runs on objective-c, swift, and any other programming languages that run on Objective-C. It focuses on source-based distribution of third party code and allows automatic integration to your Xcode projects.

How do you make a CocoaPods framework in Swift?

Implement the podIn the project navigator, right click on the SwiftyLab target and select New File... Choose Swift File as the new file template, click on Next … Name the file as SwiftyLib , make sure this file belongs to the SwiftyLib target and save it in the SwiftyLib folder as shown in the screenshot below.

Is CocoaPods only for iOS?

CocoaPods for Device-Only iOS Libraries.


3 Answers

Go here in your build settings...

enter image description here

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.

like image 170
Fogmeister Avatar answered Nov 11 '22 05:11

Fogmeister


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

  1. Go to 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. (Normal text = inherit)
  5. Pod install and the error/errors should go away!

enter image description here

like image 33
Marlon Ruiz Avatar answered Nov 11 '22 04:11

Marlon Ruiz


  1. Go to Build Settings
  2. At the top select All and Combined
  3. Under Build Options search "Always Embed Swift Standard Libraries"
  4. Update its value with $(inherited)
  5. Now install pod and all the error should go.

enter image description here

like image 25
Umair Ali Avatar answered Nov 11 '22 04:11

Umair Ali