MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Error: AppWindow.show not supported on iOS #546

Closed sLatzko closed 9 years ago

sLatzko commented 9 years ago

So, I've got my Chrome App up and running and it does so nicely as an chrome app and as an android app. Now I wanted to build my app for ios too, mainly for fun and got following error while starting the app in xcode. Note, that I don't get any errors on the other platforms.

2015-04-05 18:51:02.960 Johanniter Dienstplan[3624:120551] [CDVTimer][file] 12.404978ms
2015-04-05 18:51:03.054 Johanniter Dienstplan[3624:120551] [CDVTimer][statusbar] 94.321012ms
2015-04-05 18:51:03.055 Johanniter Dienstplan[3624:120551] [CDVTimer][chromebootstrap] 0.087976ms
2015-04-05 18:51:03.055 Johanniter Dienstplan[3624:120551] [CDVTimer][chromeextensionurls] 0.083983ms
2015-04-05 18:51:03.055 Johanniter Dienstplan[3624:120551] [CDVTimer][chromenavigation] 0.048995ms
2015-04-05 18:51:03.055 Johanniter Dienstplan[3624:120551] [CDVTimer][TotalPluginStartup] 107.940018ms
2015-04-05 18:51:03.205 Johanniter Dienstplan[3624:120551] Resetting plugins due to page load.
2015-04-05 18:51:03.567 Johanniter Dienstplan[3624:120551] AppWindow.show not supported on iOS
2015-04-05 18:51:03.568 Johanniter Dienstplan[3624:120618] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000106c92a75 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000109076bb7 objc_exception_throw + 45
    2   CoreFoundation                      0x0000000106b9e03f -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 383
    3   CoreFoundation                      0x0000000106bb0d8b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
    4   Johanniter Dienstplan               0x0000000106a5cdc9 -[ChromeURLProtocol startLoading] + 921
    5   CFNetwork                           0x000000010d7d31ae ___ZN19URLConnectionLoader27_private_ScheduleOriginLoadEPK12NSURLRequestPK20_CFCachedURLResponse_block_invoke_2 + 61
    6   CFNetwork                           0x000000010d6e6d4b ___ZNK19URLConnectionLoader25withExistingProtocolAsyncEU13block_pointerFvP11URLProtocolE_block_invoke + 25
    7   CFNetwork                           0x000000010d6e6d16 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 72
    8   CoreFoundation                      0x0000000106b9ab44 CFArrayApplyFunction + 68
    9   CFNetwork                           0x000000010d6e6bd7 _ZN19RunloopBlockContext7performEv + 133
    10  CFNetwork                           0x000000010d6e6a16 _ZN17MultiplexerSource7performEv + 256
    11  CFNetwork                           0x000000010d6e682c _ZN17MultiplexerSource8_performEPv + 72
    12  CoreFoundation                      0x0000000106bc7c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    13  CoreFoundation                      0x0000000106bbdb5d __CFRunLoopDoSources0 + 269
    14  CoreFoundation                      0x0000000106bbd194 __CFRunLoopRun + 868
    15  CoreFoundation                      0x0000000106bbcbc6 CFRunLoopRunSpecific + 470
    16  WebCore                             0x000000010bf50edd _ZN7WebCoreL15runLoaderThreadEPv + 349
    17  JavaScriptCore                      0x000000011150a453 _ZN3WTFL19wtfThreadEntryPointEPv + 19
    18  libsystem_pthread.dylib             0x0000000109b3c268 _pthread_body + 131
    19  libsystem_pthread.dylib             0x0000000109b3c1e5 _pthread_body + 0
    20  libsystem_pthread.dylib             0x0000000109b3a41d thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

I tried to figure it out by myself but googling didn't work out for me this time. Any suggestions or tips on what it could be? Thank you!

agrieve commented 9 years ago

We had a bug in the bootstrap plugin, but it's been fixed now (https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/1)

Try running caa upgrade and try again.