如何更新编译器和重建 Alamofire

How to update compiler and rebuild Alamofire

今天我在我的 Xcode 项目中发现了这个错误...

Module file was created by an older version of the compiler; rebuild 'Alamofire' and try again:/Users/Shane/Documents/MyProject/MyProect/Carthage/Build/iOS/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule

之前有没有其他人见过这个问题 and/or 知道如何修复它?

我已经清理了我的项目并删除了我的派生数据。还有我的 Xcode 版本 7.3

我找到了一个解决方案,方法是重新安装 Carthage,然后通过终端转到我的项目并执行 carthage update。 完成后,我回到 Xcode 并为了安全起见进行了清理,清理了一个构建文件夹,再次删除了派生数据文件夹,然后构建了项目。

帮我清理 Build 文件夹 Cmd ⌘ + Alt ⌥ + Shift ⇧ + K 有效。