Xcode 6 has a rather insidious quirk when updating your project to the “recommended settings”. Historically it’s been fine to let Xcode go through with the update, but Xcode 6 will modify your build settings to build a 64-bit app by default.
This will get you about 25 warnings and some semi-obscure linker errors, compounded by the fact that the scheme still says “32-bit”.
The error message:
Undefined symbols for architecture x86_64: "ofSetupOpenGL(int, int, int)", referenced from: _main in main.o "ofRunApp(ofBaseApp*)", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Your main clue is that it says “symbol(s) not found for architecture x86_64” instead of “symbol(s) not found for architecture i386”.
The fix is to tweak your build settings to allow a 32-bit build.
- Select your project file in the Project Navigator (the left sidebar)
- Select your project’s target (first entry under TARGETS in the panel that just came up)
- Find the “Architectures” setting (make sure “All” is selected if you can’t find “Architectures”)
- Change it from “Standard Architectures” to “Universal” (or explicitly “32-bit” if you prefer)
You should be able to build after doing this.
(side note: 64-bit support is coming in OF 0.9.0)