以下Pod已集成到不具有相同Swift版本的目标中 [英] following pods are integrated into targets that do not have the same Swift version
问题描述
我正在将项目更新为Swift3.将我的一些可可足类更新为swift 3时,在运行pod install之后,我在终端中收到以下消息:
I am updating my project to Swift 3. When updating some of my cocoapods to swift 3, I receive the following message in terminal, after running pod install:
Analyzing dependencies
[!] The following pods are integrated into targets that do not have the same Swift version:
- AWSCore required by myApp (Swift 3.0.1), myApptests (Swift 3.0)
- AWSS3 required by myApp (Swift 3.0.1), myApptests (Swift 3.0)
- Alamofire required by myApp (Swift 3.0.1), myApptests (Swift 3.0)
这里有一个很长的线程: https://github.com/CocoaPods/CocoaPods/issues/5864 关于此问题,我尝试了建议的解决方案,但是当我运行pod install时,我仍然收到相同的消息.
There is a lengthy thread here: https://github.com/CocoaPods/CocoaPods/issues/5864 about the issue, and I tried the proposed solution, but when I run pod install, i still get the same message.
这是我的pod文件:
在给定的链接之外,我在此问题上没有发现太多.还有其他人遇到过同样的问题吗?有什么办法吗?我上周末刚刚安装了Xcode 8.1和Swift 3.0.1.
outside the one given link i haven't found much on this issue. Anyone else experienced the same problem? Any solutions? I just installed Xcode 8.1 and Swift 3.0.1 last weekend.
推荐答案
当我用Xcode9将swift3项目更新为swift4项目时,我刚刚解决了一个最近的问题,问题是:
[!] The following pods are integrated into targets that do not have the same Swift version:
I just solved a recent issue when I updated my swift3 project to swift4 one with Xcode9, the problem said:
[!] The following pods are integrated into targets that do not have the same Swift version:
Appsee required by MyApp (Swift 4.0), MyAppUnitTest (Swift 3.0)
...配足
我的解决方案是:
在主要目标MyApp
的快速版本为4.0的情况下,我还将我的UnitTest版本更新为4.0,更新为Build Settings
-> Swift Language Version
My solution was:
With my main target MyApp
with the swift version at 4.0, I also updated my UnitTest version to 4.0 into Build Settings
--> Swift Language Version
这篇关于以下Pod已集成到不具有相同Swift版本的目标中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!