Still too new to be able to vote for a matte answer in this thread. However, I would like to repeat his answer and, to add value, note that his proposed fix also works for PhoneGap / Cordova 1.9
I have several applications that have not yet gone through the PhoneGap / Cordova 1.9 โ 2.0 / 2.1 update process, and manually making the changes suggested above in AppDelegate.m worked for these applications.
Also, it's worth adding that when you put this line, it seems to matter.
I initially added this line just before: return YES, and it failed. Turns out you need to put it before this line:
[self.window addSubview:self.viewController.view]
One more thing .... help google / etc. find this problem faster ... the key clue in the console log that you need to add this line is the following:
It is expected that the root controller will be installed in the application windows at the end of the application launch
Adding the line of code mentioned above makes this error go away ...
Hope this helps others see this issue.
source share