Cocoapods 1.1.1目标覆盖了'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`

net*_*000 6 cocoapods cocoapods-1.1.1

我已经为我的XCode 8 Swift 2.0项目更新了cocoapods 1.1.1,现在我ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES在控制台中收到警告"... target over the the ...".我怎样才能解决这个问题?

这是我的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
Run Code Online (Sandbox Code Playgroud)

Tra*_*ten 9

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

  1. 进入构建设置
  2. 在顶部选择全部组合
  3. 在Build Options下,您应该看到Always Embed Swift标准库,它是粗体.
  4. 单击它,然后单击"删除".它现在应该是不受约束的.
  5. Pod安装和错误/错误应该消失!

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

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