什么 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 从 CocoaPods, Swift 3 和 Xcode 8

安装后 cocoapods 并添加
pod "SwiftCarousel"

到文件。 pod 并分发平台: ios, '9.0' 我懂了 ERROR

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
已邀请:

快网

赞同来自:

在装配设置中进入...

https://i.stack.imgur.com/ocKH4.png
然后突出显示字符串 "Always embed..." 并单击“删除”。 这将将其更改为使用继承的属性。

即使在你做这个改变之后,它将仍然存在,但它可能会随着改变

大胆的

在普通文本上。 如果发生此更改,则继承。

正常文本 = 它是遗传的。

粗体文字

= 覆盖。

小明明

赞同来自:

我可以通过以下内容来解决这个问题 /一步步/:

转到装配设置

在顶部,选择全部并结合

在“装配参数”部分中,您应该看到 Always Embed Swift Standard Libraries, 它以粗体突出显示。

单击它,然后单击“删除” /< -/. 现在她必须离开。 /正常文本 = 继承/

Pod install 错误/错误应该消失!

https://i.stack.imgur.com/K9nse.png

龙天

赞同来自:

转到装配设置

在顶部,选择全部并结合

在“组装参数”部分中搜索 "Always Embed Swift Standard Libraries"

更新其值 $/遗传/

现在安装 pod, 所有错误都应该离开。

https://i.stack.imgur.com/ghfm1.png

龙天

赞同来自:

该决定一直在工作,但现在您必须确保所有队友都能执行
pod install

.

我们都知道他们不会这样做。

你(们)能做到 CococaPods 通过将它添加到您的底部来自动执行它
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


更多信息在这里:
https://www.devsbedevin.net/co ... ries/
/

快网

赞同来自:

我建议在安装后安装所有模块,如消息所示:


post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = '$/inherited/'
end
end
end

董宝中

赞同来自:

消除

文件夹 Pods

安装 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 价值

$/遗传

/ ;

工作

????正在施工????

要回复问题请先登录注册