How to fix the TEXT Macro on iOS/OSX?

It would be much easier to help if you’d paste the piece of code the compiler is complaining about. Thanks.

I’m getting this error in Xcode when compiling my project for OSX ( #ProjectNameEditor - Mac → Mac )

MyGameMode.cpp:45:42: ISO C++11 does not allow conversion from string literal to ‘TCHAR *’ (aka ‘wchar_t *’)

Solved !

I had my own functions like this

AActor *GetActorByName( TCHAR *Name )

which needed to turn to

AActor *GetActorByName( const TCHAR *Name )

so basically all functions need to use a “const TCHAR” if you use the TEXT macro