使用iOS 10重建alamofire的问题

时间:2016-08-26 18:04:10

标签: ios alamofire ios10 carthage

我有一个在iOS 9中运行良好的iOS应用程序但是当我升级到iOS 10时,我收到了alamofire的错误。当我构建应用程序时,它说

"Module file was created using an older version of the compiler, rebuild 'Alamofire' and try again"

我尝试通过键入carthage update来重建它,它确实重建了框架文件,但是当我将它们重新添加为嵌入或链接的二进制文件时,我得到了同样的错误。我该如何诊断和解决这个问题?我怀疑这不是特别是iOS 10的问题,而是一个我无法掌握的重建问题。

1 个答案:

答案 0 :(得分:0)

将Xcode的命令行工具更改为指向8 beta应用程序:

sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/

有关详细信息,请参阅Alamofire repo上的Swift 3.0 issue