liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
240 stars 98 forks source link

IOS: Expect initial value after '=' #468

Closed gjae closed 1 year ago

gjae commented 1 year ago

Hello there! I found the following error while I run my app in an Ios Simulator: Lib version: 0.70.1 and 0.70.0

flutter doctor: image

Simulator IOS 13.7

error: Expected initial value after '=' in MyMapView.swift:171:23 image

Some idea?

liodali commented 1 year ago

i will do quick fix for it

liodali commented 1 year ago

check the new version 0.70.2

fonmaestro2 commented 11 months ago

Hello, same problem here. Lib version: flutter_osm_plugin: ^0.70.3 Simulator: Simulator iPhone 14 PRO MAX - iOs 16.4 Pod file: platform :ios, '13.0'

flutter doctor

Captura de pantalla 2023-12-15 a las 9 27 20

Error

Captura de pantalla 2023-12-15 a las 9 24 42
liodali commented 11 months ago

try to run flutter clean and flutter pub get

fonmaestro2 commented 11 months ago

First of all, thanks for the quick answer

I tried

flutter clean
flutter pub get

and still got error.

liodali commented 11 months ago

try to go to that location deleted and run flutter pub upgrade

fonmaestro2 commented 11 months ago

flutter pub upgrade output No dependencies changed in ...

And still got error.

What location deleted?

liodali commented 11 months ago

sorry for late reply i mean in .pub-cache remove the latest version and try to get it again

fonmaestro2 commented 11 months ago

No worries, thanks for your time

I remove .pub_cache folder. Then flutter clean, and then flutter pub get

and still get the same error.

It's very weird. Anyway... thanks for your time

fonmaestro2 commented 11 months ago

Only if its help you: I tried to remove all dart&flutter installations and reinstall. Then i create a new empty/fresh project only with osm_flutter package and I get the same errror.

I don't know if the bug is related with my local installation. Or something related with cache folders.

AhmedAbouelkher commented 11 months ago

@liodali The issue fix is not present in the latest version v0.7.4. According to this commit and the current production version doesn't include this fix.

liodali commented 11 months ago

try the latest dev version : 1.0.0-dev

andreacona96 commented 10 months ago

Hi @liodali, I solved by replacing line 172 in MyMapView.swift let url = if (fromAsset){ Bundle.main.url(forAuxiliaryExecutable: dynamicOSMPath!)! } else { URL(string: urlStyle)! }

whit this

var url: URL { if (fromAsset){ return Bundle.main.url(forAuxiliaryExecutable: dynamicOSMPath!)! } else { return URL(string: urlStyle)! } }

Can you release a new version with this fix?

liodali commented 10 months ago

use our dev version we dont use tangram sdk for ios anymore

andreacona96 commented 10 months ago

@liodali if I use version 1.0.0-dev I no longer have the markerOption attribute in OSMOption

georgno commented 9 months ago

@liodali if I use version 1.0.0-dev I no longer have the markerOption attribute in OSMOption

any news on that? did you find a workaround?

liodali commented 9 months ago

i removed markerOption that contain home marker you can manage them freely in you app without need the package but maybe next version i can see how to return it if i find good way to manage it because it make things little bit complicated trying to create more generic apis first them i can focus in some usefull use cases like home location or staff similar