vendredi 26 juin 2015

Include of Non Modular Header and file not found for sqlite3.h in Swift with AWS SDK

I'm caught between two very peculiar errors in an iOS Swift project. When I attempt to compile my project, I receive a "Include of Non-modular header" error due to several files in the AWSCore framework of the AWS iOS SDK requiring "sqlite3.h" as an import.

After spending several hours looking for solutions, I eventually copied a copy of the file into the AWSCore folder in my project from Cocoapods, and this removes the issue, compiling my project successfully. However, when I clean the build and attempt to rebuild, I receive a "Lexical or Preprocessor issue - file not found" due to the extra SQLite3.h file.

When I remove it, the compile process will go up to the "include of Non-modular header" error again.

I have already tried nearly all of the common solutions - set include of modular headers to yes, removing the framework and readding, adding "." to the header/framework search paths recursively. I'm now completely stumped, so any help would be greatly appreciated. Thanks!




Aucun commentaire:

Enregistrer un commentaire