草庐IT

ios - CocoaPods、Swift 3 和 Xcode 8 的 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 是什么

coder 2023-07-24 原文

在安装 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

最佳答案

在你的build设置中转到这里...

然后突出显示“始终嵌入...”行并点击删除。这会将其更改为使用继承的属性。

即使您进行了此更改,它仍将保留在那里,但它可能会从粗体 更改为普通文本。如果发生这种变化,那么它将被继承。

普通文本 = 继承。

粗体文本 = 已覆盖。

关于ios - CocoaPods、Swift 3 和 Xcode 8 的 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41570233/

有关ios - CocoaPods、Swift 3 和 Xcode 8 的 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 是什么的更多相关文章

  1. ruby - 为什么我的 cocoapods post_install Hook 没有更新我的预处理器宏? - 2

    几天来,我一直在四处寻找,试图弄清楚为什么我的post_installHook没有产生我期望的输出。这是我的Podfile:source'https://github.com/CocoaPods/Specs.git'target"SCCommon"doplatform:ios,"6.0"pod'AFNetworking','~>1.2.1'pod'Mantle','~>1.3'pod'PubNub','3.5.5'endtarget"SCCommon-TestHarness"doplatform:ios,"6.0"#inhibit_all_warnings!pod'SCCommon',

  2. ruby - 无法开始工作 CocoaPods 和 Yosemite - 2

    我已经尝试过以下步骤:打开Xcode6打开首选项单击“位置”选项卡将命令行工具版本更改为Xcode6.0卸载cocoapods一个。$sudogem卸载cocoapods安装xcodeproj一个。$须藤gem安装xcodeproj安装cocoapods一个。$sudogem安装cocoapods运行pod--version来验证它是否有效但是当我执行podinstall或pod--version时我仍然得到这个:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core

  3. ruby - 如何在命令行上切换 cocoapods(或其他 gem)版本? - 2

    有一些答案说使用gem'cocoapods','0.33.1'或gem'pod','0.33.1但这行不通。错误:执行gem时...(Gem::CommandLineError)未知命令cocoapods,在一个项目中我需要使用0.33.1,但在另一个项目中需要使用0.34.4。如何在命令行快速切换cocoapods版本?我不想使用gem安装或卸载。我将rbenv与ruby​​版本2.0.0p0一起使用。继续使用rbenv是首选,但只有在没有其他选择的情况下,我才能切换到rvm或纯ruby​​。谢谢。 最佳答案 您可以执行以下操作以

  4. ruby - 更新到 cocoapods 0.32.1 后无法运行 sudo pod install,错误为 "You cannot run CocoaPods as root. (CLAide::Help)" - 2

    我在更新到最新版本0.32.1后运行sudopodinstall命令时发现了一个问题。早些时候它工作得很好。当我尝试使用旧的cocoapods安装pod时,它要求我更新到最新的cocoapods版本,即0.32.1。在我通过cocoapodsgem更新后,我无法在我的Xcode项目中执行sudopodinstall。它给了我以下错误。±sudopodinstallruby-1.9.3-p0Password:/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/

  5. ruby - 安装 CocoaPods 的问题 - 2

    我正在尝试在OSX中设置CocoaPods(我正在运行10.8.2)-所以我运行sudogeminstallcocoapods它成功了,我得到-'Successfullyinstalledcocoapods-0.17.2安装了1个gem'然后...我尝试podsetup'-bash:pod:commandnotfound'如何让命令行识别此命令? 最佳答案 退出并重新启动终端为我修复了它。实际上,我刚刚在终端中打开了一个新选项卡。 关于ruby-安装CocoaPods的问题,我们在Sta

  6. ruby - High Sierra 中的 cocoapods 权限问题? - 2

    我将我的macOS更新为HighSierra,现在通过cocoapods在我的iOS应用程序中安装依赖项。但是我遇到以下错误。XXXXXXXXX:MyProjectCompanyName$podupdate-bash:/usr/local/bin/pod:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby:badinterpreter:Nosuchfileordirectory我试过了Zubair-mac-mini:~sdsol$geminstallcocoapodsERROR:Whileexecuti

  7. ruby - Pod setup 找不到 cocoapods - 2

    使用sudogeminstallcocoapods安装cocoapods后,尝试运行“podsetup”会返回此错误:Couldnotfind'cocoapods'(>=0)among22totalgem(s)(Gem::LoadError)“pod设置”的输出:/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:313:in`to_specs':Couldnotfind'cocoapods'(>=0)among22totalgem(s)(Gem::LoadEr

  8. ruby - 使用 sudo 进行 gem 安装 cocoapods - 2

    当我运行时$geminstallcocoapods我明白了Fetching:i18n-0.7.0.gem(100%)ERROR:Whileexecutinggem...(Gem::FilePermissionError)Youdon'thavewritepermissionsforthe/Library/Ruby/Gems/2.0.0directory.我读过这篇文章cocoaPodspodinstallPermissiondenied但是那里的答案并没有说明在你的geminstall上运行sudo是否正确(尽管在问题中被问到-即cocoaPods的sudo安装是否以错误的方式还是正常

  9. ruby - 在 N 个总 gem 中找不到 'cocoapods' (>= 0) (Gem::LoadError) - 2

    当我尝试podinstall时,出现以下问题:Faizs-MBP:newjfaizfareed$podinstall/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in`to_specs':Couldnotfind'cocoapods'(>=0)among50totalgem(s)(Gem::LoadError)Checkedin'GEM_PATH=/Users/faizfareed/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.f

  10. ruby - 无法从 ruby​​gems.org 安装 'cocoapods' gem(不良响应后端读取错误) - 2

    当我在OSXMavericks上运行“geminstallcocoapods”时出现错误。$geminstallcocoapodsERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-badresponsebackendreaderror503(https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/cocoapods-0.27.1.gemspec.rz)ERROR:Possiblea

随机推荐