Giter VIP home page Giter VIP logo

Comments (7)

ayyshim avatar ayyshim commented on June 13, 2024

esewa_pnp v.1.0.0 will compile fine if you run/test it on real physical device but to run/test it on iOS simulator you'll need to add esewa_pnp into your pubspec.yaml file in different way.

dependencies:
  # esewa_pnp: ^1.0.0 # Use it on production app or while testing esewa_pnp on real physical iOS device.
  esewa_pnp:
      git: https://github.com/ayyshim/esewa_pnp.git
      ref: simulator

from esewa_pnp.

pasza01 avatar pasza01 commented on June 13, 2024

I did try to force flutter to run it on device rather than using simulator

flutter run -d [device name]

from esewa_pnp.

ayyshim avatar ayyshim commented on June 13, 2024

For physical device add the plugin into your pubspec.yaml file like this

dependencies:
  esewa_pnp: ^1.0.0

For simulator add the plugin into your pubspec.yaml file like this:

dependencies:
  esewa_pnp:
      git: https://github.com/ayyshim/esewa_pnp.git
      ref: simulator

Don't forget to do flutter clean and flutter pub get

from esewa_pnp.

pasza01 avatar pasza01 commented on June 13, 2024

Apparently, below format worked for me. Flutter version: 1.17.2

  esewa_pnp:
           git:
           url: git://github.com/ayyshim/esewa_pnp.git
           ref:` simulator

from esewa_pnp.

ayyshim avatar ayyshim commented on June 13, 2024

Oh yeah right. Sorry, I miswrote the syntax in documentation as well. Thank you for your insights.

I am closing this issue.

from esewa_pnp.

litigoner avatar litigoner commented on June 13, 2024

i got this same error. when i tried to change https to git as below:

esewa_pnp:
git:
url: git://github.com/ayyshim/esewa_pnp.git
ref: simulator

then i got this error

pub get failed (server unavailable) -- attempting retry 5 in 16 seconds...
Git error. Command: git clone --mirror git://github.com/ayyshim/esewa_pnp.git /Library/Developer/flutter/.pub->cache/git/cache/esewa_pnp-f0ccc1a1bd61f2127a215c5dfe5ed3c2e09a1332
stdout:
stderr: Cloning into bare repository '/Library/Developer/flutter/.pub-cache/git/cache/esewa_pnp->f0ccc1a1bd61f2127a215c5dfe5ed3c2e09a1332'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
exit code: 128`

from esewa_pnp.

ayyshim avatar ayyshim commented on June 13, 2024

There is no longer simulator branch that you can use in ref instead use dev branch

Try running following command and then retry flutter pub get

Command: git config --global url."[email protected]:".insteadOf git://github.com/

from esewa_pnp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.