mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
252 stars 93 forks source link

After upgrading from 0.5.1 to 1.0.0 it asks for Pod Upgrade which breaks my Application on Map Zoom out #461

Closed securexperts closed 1 month ago

securexperts commented 2 months ago

Hi,

I have upgraded the Mapbox-maps-flutter version from 0.5.1 to 1.0.0. This action asks for upgrading my Pod's for iOS. When I compile a Run my working app it starts correctly and loads Pucks from a JSON File. I can then see Pucks and stuff I do on my Map. When I zoom it out to much bigger Area the whole app crashes with the following Error.

nw_path_necp_check_for_updates Failed to copy updated result (22) Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (__NSTaggedDate)' First throw call stack: (0x19f10ab28 0x196f5ef78 0x19defbe70 0x19defb7c8 0x19dc78bac 0x19d9f4ae0 0x19defb2b8 0x19df2bf24 0x19df2bdcc 0x1019f3cc8 0x1019eb9d0 0x103776818 0x103776a28 0x1037769a4 0x1039e503c 0x1038a4500 0x1038a43d0 0x1026d94c8 0x102cecac0 0x102ce4db0 0x10288ca7c 0x10288a8a4 0x10293fa74 0x102ca52a0 0x10135ca50 0x19f05562c 0x19f0548a8 0x19f0530b8 0x19f051d88 0x19f051968 0x1e33474e0 0x1a14c4edc 0x1a14c4518 0x100224c04 0x1c2572d84) libc++abi: terminating due to uncaught exception of type NSException (lldb)

At the Moment, when I zoom out there is nothing donne with Json as it has already loaded a long time ago.

Any Idea where this could come from? How can I trace this Error down to the source?

Thanks

securexperts commented 1 month ago

Hi I have had the same and had to completely remove the iOS folder After that I recreated with the following commands:

flutter create --platform ios . cd ios arch -x86_64 pod install

Because I have a Mac M1 I have to install my pod in "arch -x86_64"

Good luck!

evil159 commented 1 month ago

Hi @securexperts, good to hear you found a workaround, the original issue should be fixed in https://github.com/mapbox/mapbox-maps-flutter/pull/440, which is released as part of v1.1.0 today.