mattermoran / map_launcher

Flutter plugin for launching maps
MIT License
259 stars 117 forks source link

The Plugin doesn't work on iOS #149

Closed Goran-coder closed 10 months ago

Goran-coder commented 1 year ago

I have a Mac and I tried running the flutter app that uses map_launcher plugin on Iphone 14 emulator. The same app with your plugin works on android emulator. When I debug for Iphone emulator from vscode I get the following error: tata-gotovo

Also when I try in xcode I get this error: tata2

I have added needed lines to Info.plist tata3 I am not sure what is wrong. I have tried changing the Podfile to add that dependency from cocoapods, but cocoapods does not know what is map_laucher. So pod search map_launcher gives back [!] Unable to find a pod with name, author, summary, or description matching 'map_launcher'. Can someone help?

mattermoran commented 1 year ago

Can you try the flutter clean command and running again?

Goran-coder commented 1 year ago

I have tried many times, while looking at other similar issues but it didn't work. Tried it now again and the same error happens. Also flutter doctor gives no issues.

mattermoran commented 1 year ago

I'm going to need more info to debug. Can you provide flutter doctor --verbose output? Also could you try to create a brand new flutter app and add map launcher as a dependency to see if it still happens?

Goran-coder commented 1 year ago

Here is the output of flutter doctor --verbose: tata4-gotovo

I will create a new app and try it thank you for the idea! Will update you as soon as I am done with trying that.

Goran-coder commented 1 year ago

Okey, so It works on a brand new project, goes like a glove. Something is wrong with my frizer_ease project.

Goran-coder commented 1 year ago

So I have removed the dependency and the code for opening maps. Then the emulator will start. While the emulator being 'hot', I add the dependency and the code. Then I do the hot restart and the following error happens when I click the button that opens maps: tata6 When I close the connection so the emulator is no longer 'hot' it will not start again and everything the same happens as the original post. All errors are the same.

mattermoran commented 1 year ago

Could you also share your pubspec.yaml as well as the Podfile?

Goran-coder commented 1 year ago

Here is the pubspec.yaml: tata9 tata8

And here is the Podfile:

tata7

mattermoran commented 10 months ago

As you mentioned it works in a brand new project which means most likely there was some caching issue. I'm closing this. Let me know if you still think it's a problem with this plugin.