You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/08/19 16:49:17 UTC

[GitHub] [cordova-ios] mcake8 commented on issue #1215: iOS Simulator shows 'about:blank' when scheme/hostname preferences are set

mcake8 commented on issue #1215:
URL: https://github.com/apache/cordova-ios/issues/1215#issuecomment-1220885522

   I got the very same issue, but it doesn't work even from the XCode for me
   Device: MacBook Pro (16-inch, 2021) M1 Pro 16 GB
   Cordova CLI 11.0.0
   Cordova iOS 6.2.0
   
   if I set the config like this
    ```
    <preference name="scheme" value="app" />
   <preference name="hostname" value="www.my-awesome-site.com" />
   ```
    App displays "about:blank" page, cookies don't work and the XCode console says something like this
    
   
   >  2022-08-19 20:16:15.564214+0400 HelloWorld[42258:3653880] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xde692fe4 74cb27a9 46141ef2 d51b2967 ... 1bf15bf0 1946d147 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xb5aceade 20f27303 c39ab815 65e94ec7 ... cd950a70 602e0a75 }}
   > 2022-08-19 20:16:15.848182+0400 HelloWorld[42258:3653880] [Process] 0x7fdb00025c20 - [pageProxyID=11, webPageID=12, PID=42283] WebPageProxy::didFailProvisionalLoadForFrame: frameID=3, domain=WebKitErrorDomain, code=102
   > 2022-08-19 20:16:15.849028+0400 HelloWorld[42258:3653880] Failed to load webpage with error: Frame load interrupted
   
    
    
    It works well if I set it like so
    ```
    <preference name="hostname" value="localhost" />
    ```
    
   I'm completely confused, I wasn't able to find clear documentation for those preferences.
   Tried to run the simulator with the Cordova CLI and the XCode both gave me the same result. 
   Also before moving to the M1 chip **everything was working well on the Intel chip with** the first example `name="scheme" value="app".`
   
   So the question is, should I use different config settings for the production and debug, or should I put it the way it works on the simulator? Or maybe I should not use the simulator for the ios on the M1 chip and just leave the config like it was working before on the Intel? 
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org