Manual Installation for a Swift Project

If manually installing Engine for a Swift project, you must create a bridging header to include FactualEngine.h. This continues from the instructions on manual installation given here.


1. Create temp .m file

Create a new .m file to be discarded later. Once it's created, you will be asked if you want to create a bridging header file. Select Create Bridging Header.


2. Import FactualEngine.h

In the newly created bridging header file called [PROJECT-NAME]-Bridging-Header.h add the line:

#import "FactualEngine.h"

Now FactualEngine.h will be exposed to all of your swift files in this project.


3. Delete temporary .m file

You can now safely delete the temporary .m file created in step 1.