Cocoapods 1.1.1目标覆盖`ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`

问题描述:

我已经更新到我的XCode 8 Swift 2.0项目的cocoapods 1.1.1,现在我得到警告“... target overrides ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES ...”安慰。我怎样才能解决这个问题?Cocoapods 1.1.1目标覆盖`ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`

这里我podfile

platform :ios, '9.0' 
use_frameworks! 

def app_pods 
pod 'Alamofire', '~> 4.0.0' 
pod 'AlamofireObjectMapper','~> 4.0.0' 
pod 'RealmSwift', '~> 2.0.2' 
pod 'KeychainAccess', '~> 3.0.0' 
pod 'ReachabilitySwift', '~> 3' 
pod 'SwiftyBeaver', '~> 1.0.1' 
pod 'GoogleAnalytics', '~> 3.17.0' 
end 

def unit_tests 
app_pods 
pod 'OHHTTPStubs', '~> 5.2.1' 
pod 'OHHTTPStubs/Swift', '~> 5.2.1' 
end 


target 'Demo' do 
app_pods 
end 

target 'App1' do 
app_pods 
end 

target 'App2' do 
app_pods 
end 

target 'DemoTests' do 
unit_tests 
end 

target 'App1Tests' do 
unit_tests 
end 

target 'App2Tests' do 
unit_tests 
end 

post_install do |installer| 
    installer.pods_project.targets.each do |target| 
     target.build_configurations.each do |config| 
      config.build_settings['SWIFT_VERSION'] = '3.0' 
     end 
    end 
end 

我能够通过执行以下操作来解决此问题:

  1. 进入构建设置
  2. 选择顶部所有联合
  3. 在构建选项下,您应该看到总是嵌入Swift标准库并且它是粗体。
  4. 点击它,然后单击删除。它现在应该是没有折扣的。
  5. Pod安装和错误/错误应该消失!

它不会让我发布图像,因为我没有足够的声望,所以这里是一个详细的屏幕截图链接!

https://cloud.githubusercontent.com/assets/17066507/21532583/93df897e-cd1f-11e6-9f17-d25cb81a2a53.png

此问题已被固定在下面拉请求https://github.com/CocoaPods/CocoaPods/pull/6068,它应该在的CocoaPods 1.1.2版本出来。我从以下GitHub的问题的信息https://github.com/CocoaPods/CocoaPods/issues/6067

+1

希望他们尽快修复它... – netshark1000