How do I build a command line tool that links against the iPhone Simulator SDK?
问题 Why the hell would I want to do that? The OpenGL Shader Builder is a great development tool, but it compiles shaders using desktop OpenGL, which allows some things that ES does not. I figure if I can create a tool that links against the OpenGLES.framework in the iPhone Simulator SDK, I can get some error reporting without having to build/install/run my application. By inspecting the command lines appearing in the Xcode build window, I got as far as this (in Makefile format, for clarity.