I have a sample NSApplication to be launched through post build shell script. The shell script tries to open the application with the argument provided. But this fails to load the UI (nib file) and gives an error message "Terminating app due to uncaught exception NSInternalInconsistencyException, reason: Error (1002) creating CGSWindow".
The screenshot of the exception and also the configuration is attached.
I am also attaching the test app(testApp.zip) and the script file(script.zip) used.