ios - main.lua is not called using Corona Enterprise -
i have made significant changes corona enterprise app writing ios. code using .xib file launch appdelegate, , have removed , loading different appdelegate in main.mm
the following main.mm
// // main.mm // examples // #import <uikit/uikit.h> #import "coronaapplicationmain.h" #import "myappdelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { coronaapplicationmain( argc, argv, [myappdelegate class] ); } return 0; }
this myappdelegate.h
// // myappdelegate.h // #import <foundation/foundation.h> #import "coronadelegate.h" @interface myappdelegate : nsobject< coronadelegate > @end
and finally, myappdelegate.mm
// // myappdelegate.mm // #import "myappdelegate.h" #import "coronaruntime.h" #import "coronalua.h" @implementation myappdelegate - (void)willloadmain:(id<coronaruntime>)runtime { nslog ( @"willloadmain" ); } - (void)didloadmain:(id<coronaruntime>)runtime { nslog ( @"didloadmain" ); } @end
i not posting main.lua seem irrelevant. if not posting important, apparently assuming not.
when run app in xcode ios simulator, black screen , willloadmain , didloadmain never called.
please let me know if see missing.
thanks, roger
my problem somewhere read should remove .xib files (this not needed). once re-added them project , updated app-info.plist, began working again. since rather new corona enterprise, lua , objective c, not understand details of why failed , began working. @ rate, issue resolved.
Comments
Post a Comment