My dev device is an iPhone 15 ProMax with iOS 26. And the version for ArcGIS Swift SDK is 100.15.6.
If I create a map with this code:
AGSMap(basemapType: "StreetsVector", latitude: 42, longitude: -73, levelOfDetail: 5)
An error always happens, and the map view will be white. Here is the error message:
Printing description of err:
▿ Optional<Error>
- some : Error Domain=com.esri.arcgis.runtime.error Code=18 "Internal error." UserInfo={NSLocalizedFailureReason=, NSLocalizedDescription=Internal error., Additional Message=}
Printing description of $R0:
Internal error.
But if using the basemap without vector, such as this:
AGSMap(basemapType: "Streets", latitude: 42, longitude: -73, levelOfDetail: 5)
The map can display correctly without any error.
Another information is I tried on other real deives with the same code, here is the result:
iPhone 16 --> Work
iPhone 17 Pro Max --> Error
iPad mini 5 --> Error
iPhone 16 Pro --> Work
iPhone SE 2--> Work
If anyone encounters a problem similar to mine or has some idea about my problem, we can discuss it together. Thank you for being so helpful~
Hi. That constructor is marked as deprecated. You should use this instead, and set the Map's initialViewpoint or the MapView's viewpoint (see this tutorial). You'll need to convert your zoom level 5 to a scale value (see this tool).
Please let us know if you still see the issue with that constructor.
Thanks for your help!
I will try it and provide more information.