Blank Screen Building Example Project for iOS

I just created the basic project from the ionic website (with template menu and react) via the wizard. I did not change anything besides the name in the ionic.config.json later as I got error with Xcode otherwise. It builds without problems as web app and can be displayed via my localhost. However, when I do

ionic capacitor add ios
ionic capacitor copy ios
ionic capacitor open ios

and build the project via Xcode for my iPhone 8 with iOS 15.5, the app loads but has blank white screen.

“name”: “IONIC”,
“integrations”: {
“capacitor”: {}
“type”: “react”

In Xcode I get the following error.

2022-07-17 05:27:13.604499+0200 App[673:5169491] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users//Library/Developer/CoreSimulator/Devices/EF9C2CCE-B1EA-47FD-93DE-122B0E16E18B/data/Containers/Data/Application/9E2355C2-D4D2-44EE-8226-414B24AD1E5A/Library/Cookies/io.ionic.starter.spf1217.binarycookies

2022-07-17 05:27:13.759518+0200 App[673:5169491] [ViewportSizing] maximumViewportInset cannot be larger than frame

2022-07-17 05:27:13.759563+0200 App[673:5169491] [ViewportSizing] minimumViewportInset cannot be larger than frame

2022-07-17 05:27:13.788571+0200 App[673:5169491] KeyboardPlugin: resize mode - native

:zap: Loading app at capacitor://localhost…

:zap: [error] - {}

:zap: ------ STARTUP JS ERROR ------

:zap: ReferenceError: Can’t find variable: React

:zap: URL: capacitor://localhost/static/js/9.21ff158f.chunk.js

:zap: [error] - {}

:zap: 9.21ff158f.chunk.js:1:923533

:zap: See above for help with debugging blank-screen issues

:zap: WebView loaded

dyld4 config: DYLD_ROOT_PATH=/Applications/ DYLD_LIBRARY_PATH=/Users//Library/Developer/Xcode/DerivedData/App-cwzasapgjfdqhqejouvvuxhixchz/Build/Products/Debug-iphonesimulator:/Applications/ DYLD_INSERT_LIBRARIES=/Applications/ DYLD_FRAMEWORK_PATH=/Users/saschapfeiffer/Library/Developer/Xcode/DerivedData/App-cwzasapgjfdqhqejouvvuxhixchz/Build/Products/Debug-iphonesimulator

CoreSimulator 802.6.1 - Device: iPhone 8 (EF9C2CCE-B1EA-47FD-93DE-122B0E16E18B) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone 8


1 Like