什么是带有cocoapods,swift 3和Xcode 8的ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES

安装cocoapods并将pod "SwiftCarousel"添加到pod文件并取消注释平台后:ios,’9.0’我得到了这个错误

ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES

我该怎么办?

 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 

在构建设置中转到此处…

在此处输入图像描述

然后突出显示“Always embed …”行并点击删除。 这将更改它以使用inheritance的属性。

通过执行以下操作,我能够解决此问题(一步一步):

  1. 转到“构建设置”
  2. 在顶部选择全部和组合
  3. 在Build Options下,您应该看到Always Embed Swift标准库,它是粗体。
  4. 单击它并单击删除(< - )。 它现在应该是不受约束的。 (普通文本=继承)
  5. Pod安装和错误/错误应该消失!

在此处输入图像描述