更新快速版本和Pod后出现链接器错误 [英] Linker Error After Updating swift Version and pods

查看:188
本文介绍了更新快速版本和Pod后出现链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装带有Pod的Alamofire,并出现编译时错误。与此相关的问题很多,但是:

I am installing Alamofire with pods and getting compile time error. There are a lot of questions regarding this but:

删除派生数据&

这是错误:


Alamofire / Alamofire.framework / Alamofire使用较早版本(2.0)较新的Swift语言(3.0)编译的体系结构x86_64
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

Alamofire/Alamofire.framework/Alamofire compiled with newer version of Swift language (3.0) than previous files (2.0) for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)


推荐答案

更新pod文件中的以下内容:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

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

这篇关于更新快速版本和Pod后出现链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆