Closed NilsAtNK closed 2 years ago
+1 experiencing this same issue with Mapbox (only on simulator)
I am dealing with the exact same issue at the moment. My Environment and the used Versions are (nearly) identical, we still use @mapbox-gl@1.12.0
Imho seems Mapbox to trigger the issue, however the root cause seems to be the Apple M1
My coworkers on Intel Macs don`t have this problem.
Have you tried / can you try building your example on an Intel Mac?
Oh and this seems to be the issue in the Mapbox repo
Closing this as it seems this is a Mapbox issue and not a Cordova issue.
Bug Report
Problem
We just ported our large React app from cordova-ios@5 to cordova-ios@6.2.0 and have the white screen of death. This has been debugged down to a call to MapBox GL which causes a restart and it enters an infinite loop. Reducing to minimum, we built the minimal Cordova tutorial hello app and embedded a minimal working Mapbox call (that is, a few lines in an index.html that works in Safari). I have exhausted answers I could find on Corodova docs, Stackoverflow and the interweb. Any help is welcome.
EDIT: Mapbox call works when on hardware, but not in simulator launched from Xcode
What is expected to happen?
Call to Mapbox works.
What does actually happen?
Call to Mapbox results in reset and white screen of death.
Information
The mini-app has CSP of:
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; img-src data: blob: ;child-src blob: ;worker-src blob: ; connect-src https://*;">
In the working mini-app (non-Cordova), in the Chrome devtools Network tab there are successful requests to
Command or Code
Mini-app HTML Snippet (but full body)
When the mini-app is built as cordova-ios, the XCode console error (repeating over and over) is:
Environment, Platform, Device
Version information
Checklist