Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

can't run in the iOS #22

Open
terry8204 opened this issue Dec 25, 2019 · 6 comments
Open

can't run in the iOS #22

terry8204 opened this issue Dec 25, 2019 · 6 comments
Labels
important A major bug

Comments

@terry8204
Copy link

can you test it in the iOS plugin?

@konishon
Copy link
Collaborator

konishon commented Jan 2, 2020

@igaurab
code magic build for iOS throws

    -> Installing user_location (0.0.1)
      - Running pre install hooks
    [!] Unable to determine Swift version for the following pods:

@konishon konishon added the important A major bug label Jan 2, 2020
@igaurab
Copy link
Owner

igaurab commented Jan 11, 2020

@terry8204 I do not own a Mac machine so can't really test it on ios devices. I am very open to PR though.

@konishon
Copy link
Collaborator

konishon commented Jan 16, 2020

@igaurab
I have codemagic setup on https://github.com/naxa-developers/iom-open-space-portal.Where I can compile for iOS

https://medium.com/flutter-community/developing-and-debugging-flutter-apps-for-ios-without-a-mac-8d362a8ec667

@konishon
Copy link
Collaborator

It build on codemagic here's the build logs
https://codemagic.io/app/5e7057c82c964659341b9932/build/5e70634d6e13eb5f2e025bfd

@smasinde
Copy link

smasinde commented Mar 30, 2020

This is the error I'm getting from this... does this help you at all?

flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
flutter: The following NoSuchMethodError was thrown while handling a gesture:
flutter: The getter 'latitude' was called on null.
flutter: Receiver: null
flutter: Tried calling: latitude
flutter:
flutter: #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
flutter: #1 _MapsPluginLayerState._moveMapToCurrentLocation (package:user_location/src/user_location_layer.dart:208:33)
flutter: #2 _MapsPluginLayerState.build. (package:user_location/src/user_location_layer.dart:273:19)
flutter: #3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706:14)

UPDATE: Works in iOS, if you are getting this error, you must first set a location from the features tab. Doesn't seem iOS allows you to grab a live location from the Sim?

Coming from Android dev that got me.

@xni06
Copy link
Contributor

xni06 commented Mar 30, 2020

0.1.2 is a based on PR #34 from 4th February - can you try the latest PR #45 from 17th March using the following to see what happens? Both have been merged into master. Thanks.

  user_location:
    git:
      url: "https://github.com/igaurab/user_location_plugin.git"
      ref: "d7e1cbe2e01ad3de320b36570f7a3cf9624f7433"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
important A major bug
Projects
None yet
Development

No branches or pull requests

5 participants