There are some OpenGL applications that will throw errors when validating them for distribution to the app store.
Usually these errors are not thrown when debugging and with testing with AdHoc. Only after being validated for distribution. The fix for this is very simple.
1.- Just go to target in project settings.