1
votes

After upgrading to the latest build of Xcode and downloading the newest Alamofire release, I am getting the following error:

Module file was created by an older version of the compiler

With the previous version of Alamofire I added the entire AF project into my app as recommended, however the install guide for the latest version of AF says just to copy the .swift file into the project.

I am still calling import Alamofire in the file that requires it. This is also where the error appears. If I remove the import my project generates 86 additional errors.

2
It sometimes help in this case to do both cleaning operations in Xcode: menu Product => Clean, then the same with ALT key pressed to clean the folder.Eric Aya
I cleaned the build folder and now I get the following error on the import Alamofire line: > No such module 'Alamofire'matcartmill
I just did the two cleanings, I have Alamofire installed with Cocoa Pods, in Xcode 6.3, and it works. I'm not sure what goes wrong here. :/Eric Aya
Interesting. Okay, thanks for your help. I'll keep troubleshooting. Trying to figure out how to setup Cocoa Pods for this project. I've got it installed, now just trying to figure out the rest.matcartmill
Okay, so I got it done with CocoaPods and the Alamofire error goes away. That said, it brought 79 additional errors to light, but those are simple fixes based on updates done to the Swift language. Thanks for your help.matcartmill

2 Answers

5
votes

For me Cleaning up the Build folder Cmd ⌘ + Alt ⌥ + Shift ⇧ + K worked.

1
votes

Alamofire is updated now for Xcode 6.3, until I know its creator merge the branch for Xcode 6.3 into the branch master in Github , you have to download it to correct the errors for the new Xcode.

But I strongly recommend you installing Alamofire using CocoaPods, I think is better, it's up to you.

I hope this help you.