I have an existing Objective-C Project that I am making into a Swift Project.
That is I have a lot of Objective-c code that I will keep and Swifting away going forward.
I have managed to create and import almost everything, but the PCH file is giving me problems.
First step is just to use the x-Prefix.pch file from objc in same project and then afterwards from Swift.
When I reference something like typedef
or "#define
" in the PCH file it can not see it?
- I have added the "Prefix Header" to the target
- Set "Precompile Prefix Header" to "YES"
Lastly the compiler do find the xx-Prefix.pch file but I can not use any define
or typedef
in code elsewere.
Do you know how?