When compiling with sdl2 use it instead of glut for creating hidden window (as suggested by koda).
This is not tested but it should work.
//
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif