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.
ionic.config.json:
{
“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
Loading app at capacitor://localhost…
[error] - {}
------ STARTUP JS ERROR ------
ReferenceError: Can’t find variable: React
URL: capacitor://localhost/static/js/9.21ff158f.chunk.js
[error] - {}
9.21ff158f.chunk.js:1:923533
See above for help with debugging blank-screen issues
WebView loaded
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users//Library/Developer/Xcode/DerivedData/App-cwzasapgjfdqhqejouvvuxhixchz/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib 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
(lldb)