Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite.swift Module file was created by an older version of compiler

I have only been using xcode for about a month. I have xcode 6 installed and created a project that used the SQLite.swift project by stephencelis from GitHub. All had been running fine and I think I must have inadvertently loaded an Xcode update this morning. I am now on xcode version 6.3. Now when I open my project and perform a build I get the error on a line in one of my units that does "import SQLite". The error message reads: "Module file was created by an older version of compiler". Prior I had 50+ errors in the SQLite source files so I had downloaded the latest zip for SQLite and opened that project and performed a build which worked with no errors. But now if I go back and compile my project I get the error mentioned in subject.

I think I just don't know how to properly use these libraries from GitHub or if this is specific to SQLite. Any help would be greatly appreciated.

like image 232
Wayne Fulcher Avatar asked Feb 11 '23 10:02

Wayne Fulcher


1 Answers

Short answer:

Alt/Option + Product menu > Clean (becomes "Clean Build Folder")


Trying to apply this answer I had previously set "Defines Module" under Packaging to YES for my app's Build Settings in Xcode 6.4. Then, trying to apply this answer I opened my project again in Xcode 7.0 beta. That is when I got the error.

Following @stephencelis' answer in the comments, I held Alt/Option while selecting "Clean" from the Product menu in order to clean the build folder. After building again the "Module file was created by an older version of compiler" error was gone. However, I still had to go back and apply the answers I linked to above to get other things to work.

like image 101
Suragch Avatar answered Mar 31 '23 17:03

Suragch