CocoaPods 和 Swift 3.0 [英] CocoaPods and Swift 3.0

查看:18
本文介绍了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 代码,也不能将 Cocoapods 与用 Swift 2.x 编写的 Swift 3 一起使用.

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天全站免登陆