I am using mapbox sdk iOS, after updating mapbox and navigation sdk to latest release, map view doesn't show my custom style.
Now I use these version of SDKs:
pod 'Mapbox-iOS-SDK', '~> 4.4'
pod 'MapboxNavigation', '~> 0.22'
This is my code and It was working before updating:
let url = URL(string: "https://myapp.ir/dynamic/style_v6.json")
mapView = MGLMapView(frame: view.bounds, styleURL: url)
view.addSubview(mapView)
It shows an empty mapView, with only user location annotation and mapbox logo. But if I use mapbox default style (MGLStyle.darkStyleURL) It works! I have already added mapbox token to info.plist. I get this error:
[ERROR] {}[Setup]: loading style failed: HTTP status code 401