无法使用xcode 8 beta 6构建项目 [英] cannot build project with xcode 8 beta 6

查看:97
本文介绍了无法使用xcode 8 beta 6构建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过迦太基添加库后,出现以下错误-

I am getting following error after I add a library via carthage -

库名称使用较早版本的Swift语言(2.0)编译 比先前版本(x86_64)的文件(3.0)

library name compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64

我已经在Argo库中尝试过了. ( https://github.com/thoughtbot/Argo )

I have tried it with Argo library. (https://github.com/thoughtbot/Argo)

我已使用xcode-select实用工具选择了正确的xcode版本.

I have selected the correct xcode version using xcode-select utility.

可能是什么问题?任何帮助将不胜感激

What could be the problem? Any help is greatly appreciated

谢谢!

推荐答案

据我了解,您似乎无法使用不同版本的Swift编写库.

From what I learned, looks like you can't have libraries written in different versions of Swift.

在我的Obj-C项目中,我用CocoaPods安装了2个库 我使用github上的swift3分支更新了第一个,并使用Xcode转换了第二个.

In my Obj-C project I had 2 libs installed with CocoaPods I updated the first one using the swift3 branch on github, and I converted the second one with Xcode.

现在一切正常!

这篇关于无法使用xcode 8 beta 6构建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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