CocoaPods和Swift 3.0 [英] CocoaPods and Swift 3.0

查看:91
本文介绍了CocoaPods和Swift 3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想在我的一个项目中尝试Swift 3.0。 Xcode打开迁移窗口以更新我的项目以使用Swift 3.0。

I just want to try Swift 3.0 in one of my projects. Xcode open the migration window to update my project to use Swift 3.0.

问题是,我只想更新我的项目,并保持Pods项目不变,因为任何我再次运行 pod install 后,将会丢弃更改。

The problem is, I just want to to update my project, and leave the Pods project untouched because any changes will be discard after I run the pod install again.

任何人都已有解决方案吗?

Anyone already have a solution for that?

推荐答案

你所要求的是不可能的。 Xcode构建您的Cocoapods依赖项以及您的项目。你不能在同一个项目中混合使用Swift 2.x和Swift 3代码,或者使用Swift 3中使用Swift 3编写的Cocoapods。

What you're asking is not possible. Xcode builds your Cocoapods dependencies as well as your project. You cannot mix Swift 2.x and Swift 3 code in the same project or use Cocoapods with Swift 3 that are written in Swift 2.x.

这篇关于CocoaPods和Swift 3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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