Giter VIP home page Giter VIP logo

Comments (25)

marfnk avatar marfnk commented on June 29, 2024 16

I have been stuck on this for a long time. The mistake was silly:
I opened the Xcode project wrongly. Always open the complete ios folder like this:

cd ios
open -a Xcode .

from flutter_barcode_reader.

GokulDharumar avatar GokulDharumar commented on June 29, 2024 1

I also have the same issue. Its failing to run on ios.
@edufolly any updates or work around you found for the issue

from flutter_barcode_reader.

GokulDharumar avatar GokulDharumar commented on June 29, 2024 1

@edufolly thanks

from flutter_barcode_reader.

maxgfr avatar maxgfr commented on June 29, 2024 1

I've the same issue.

from flutter_barcode_reader.

Smithguy86 avatar Smithguy86 commented on June 29, 2024 1

Make sure the below is placed in the runner/Info.plist file:

iOS
To use on iOS, you must add the the camera usage description to your Info.plist

< key >NSCameraUsageDescription< /key >
< string >Camera permission is required for barcode scanning.< /string >

(Added spaces to key and string so it shows)

Also check flutter doctor to make sure everything is installed correctly.

from flutter_barcode_reader.

rcagantas avatar rcagantas commented on June 29, 2024 1

If I remember correctly, inside your project folder
flutter clean
flutter upgrade
cd ios
rm Podfile.lock
rm Podfile
rm -r Pods
cd ..
flutter build

I may have created a new test project just to copy a new generated Podfile. I still get warnings but no more errors at least.

from flutter_barcode_reader.

caglar1996 avatar caglar1996 commented on June 29, 2024 1

cd ios
open -a Xcode .
thanks @marfnk

this works for me. be careful "Xcode ." (space and dot)

from flutter_barcode_reader.

edufolly avatar edufolly commented on June 29, 2024

@GokulDharumar nothing yet. I believe the developers will resolve this issue as soon as possible.

from flutter_barcode_reader.

joshdaquino avatar joshdaquino commented on June 29, 2024

I'm having the same issue.

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

Did you ever get this working?

@edufolly @maxgfr @joshdaquino

from flutter_barcode_reader.

rcagantas avatar rcagantas commented on June 29, 2024

I did. Flutter upgrade. Remove Pods and Podfile and then rebuild.

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

@rcagantas I'm quite new to this so could you please help me do that? It'd be great if you could show me exactly what commands you typed. Thanks.

from flutter_barcode_reader.

matthewtsmith avatar matthewtsmith commented on June 29, 2024

The most common reason this happens is that flutter build does not run the Pod Install step during the build process. I think @rcagantas steps will work, however I don't recommend removing the Podfile, just the Pods folder and Podfile.lock

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

@rcagantas @matthewtsmith Thanks for your responses. I ran flutter clean and flutter upgrade, but when I cd into ios and try run rm Podfile.lock or rm -r Pods it says "No such file or directory". Have I set something up wrong?

EDIT: I ran Pod Install in my ios directory and then tried, but when I ran rm - r Pods it said "Directory not empty" a bunch of times. Should I just try plug in my phone and do flutter run or do I need to flutter build first?

from flutter_barcode_reader.

matthewtsmith avatar matthewtsmith commented on June 29, 2024

If that directory is not there it means that pod install definitely hasn't run. What is the output when you run a flutter build?

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

@matthewtsmith It seems okay now and I think, but when I run it in Xcode I get this error

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

even though this is dart... and I cannot find that setting anywhere.

When I run flutter build it asks me to choose aot/apk/bundle/flx/ios, should I run ios?

EDIT: I ran flutter build ios and it gave me the swift language version error again.

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

@matthewtsmith Sorry for the spam. I just added a blank swift file to Pods and to Runner, and now it is showing SWIFT_VERSION in both of their Build Settings. In Runner it lets me pick 3.3, 4.1 or Unspecified, and in Pods it is set to 3.0 but it's an entry not a dropdown. I tried all combinations but it's still giving me the error. Any ideas?

from flutter_barcode_reader.

04fsnape avatar 04fsnape commented on June 29, 2024

@matthewtsmith Okay... now it's working after I set the SWIFT_VERSION in simple_permissions too. However, now under simple_permissions I get Swift Compiler Errors:

Flutter/Flutter.h file not found (SimplePermissionsPlugin.h)
Could not build Objective-C module 'simple-permissions'

from flutter_barcode_reader.

matthewtsmith avatar matthewtsmith commented on June 29, 2024

Sounds like you are having issues with swift dependencies. For this reason, all the plugins I've created are ObjC because flutter's swift plugin support is still lacking. This falls outside the scope of this plugin. There is much discussion about this topic here.

from flutter_barcode_reader.

tudor07 avatar tudor07 commented on June 29, 2024

@matthewtsmith Can you please re-open this issue ? I have the same problem BarcodeScanPlugin.h not being found.

barcode_scan: 0.0.8

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] Connected device (1 available)

• No issues found!

from flutter_barcode_reader.

caffo avatar caffo commented on June 29, 2024

Thanks @marfnk — that solved it.

from flutter_barcode_reader.

YasserOJ avatar YasserOJ commented on June 29, 2024

in your podfile set the minimum ios version to 11 and run it on a device ios 11+

from flutter_barcode_reader.

Renkon117 avatar Renkon117 commented on June 29, 2024

tried all solutions, but not working in iOS, anyone have the same issue?

from flutter_barcode_reader.

alfrejivi avatar alfrejivi commented on June 29, 2024

Thanks @marfnk , you saved me a lot of time :)

from flutter_barcode_reader.

gotirahul96 avatar gotirahul96 commented on June 29, 2024

Still not working please open the tread again ,Thankyou.

from flutter_barcode_reader.

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.