Qt QGuiApplication or QApplication results in "No NSMainNibFile .."
I am creating an application extension for OSX 10.10 using Qt libraries.
Ultimately I need to create an instance QApplication
to create QWidget
-derived classes . The software behaves as expected if built with:
int main(int argc, char *argv[]) {
QCoreApplication a(argc, argv);
NSLog(CFSTR("Invoking Main"));
__asm__ ("call _NSExtensionMain");
}
Build it with
int main(int argc, char *argv[]) {
QGuiApplication a(argc, argv);
NSLog(CFSTR("Invoking Main"));
__asm__ ("call _NSExtensionMain");
}
Throws the following error at runtime:
24/10/2014 14:40:08.091 My_ShellExt[32427]: Invoking Main
24/10/2014 14:40:08.092 My_ShellExt[32427]: No NSMainNibFile or NSMainStoryboardFile specified in info dictionary, exiting
24/10/2014 14:40:08.095 com.apple.xpc.launchd[1]: (me.qdot.My_Daemon.My_ShellExt[32427]) Service exited with abnormal code: 1
+3
source to share
No one has answered this question yet
Check out similar questions: