Thomas Denney

Linking GLKit and Objective-C++ in Xcode 6

If you create a new Objective-C GLKit project in Xcode 6 and rename your main view controller to a .mm (Objective-C++) file you’ll immediately get linker errors with some of the common GLKit classes not being found. This is because in Xcode 6 you don’t have to explicitly link against Apple frameworks. To fix the linker errors, just add GLKit.framework to your Linked Frameworks and Libraries.