GithubHelp home page GithubHelp logo

Cordova 3.0.0 iOS issue about barcodescanner HOT 15 CLOSED

ibudai avatar ibudai commented on May 29, 2024
Cordova 3.0.0 iOS issue

from barcodescanner.

Comments (15)

Eccenux avatar Eccenux commented on May 29, 2024

Haven't had the chance to test use it on iOS, but try the fixed plugin.xml:
https://github.com/Eccenux/BarcodeScanner/blob/master/plugin.xml

from barcodescanner.

ibudai avatar ibudai commented on May 29, 2024

Thanks! This helped me install the plugin itself but the iOS version still needed some adjustments.

This fixed my problem, just in case someone else runs into the same thing:
https://github.com/jonathannaguin/BarcodeScanner/blob/master/src/ios/CDVBarcodeScanner.mm

from barcodescanner.

uofmmike avatar uofmmike commented on May 29, 2024

Hi fellow IOSers, i'm still having trouble getting this to build correctly.
with: (after the tweaks to the .mm and the .xml files)

phonegap local plugin add ../../Desktop/BarcodeScanner-master/ 

and

phonegap build ios

returns:

** BUILD FAILED **
The following build commands failed:
    CompileC build/sparkleapp.build/Debug-iphonesimulator/sparkleapp.build/Objects-normal/i386/CDVBarcodeScanner.o sparkleapp/Plugins/com.phonegap.plugins.barcodescanner/CDVBarcodeScanner.mm normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Did you guys get this to load with these files? also, any chance we can get the mighty wildabeast to rebuild so we can install straight from github and the phonegap 3.0.0 command line????

Ideally:

 
phonegap local plugin add https://github.com/wildabeast/BarcodeScanner.git

Any/all help would be much appreciated guys, thanks a ton!

from barcodescanner.

juanbermudez avatar juanbermudez commented on May 29, 2024

Having the same issue as @uofmmike

from barcodescanner.

Yossarian24 avatar Yossarian24 commented on May 29, 2024

Had the same problem as ibudai and the the CDVBarcodeScanner.mm tweak also worked for me. The problem is I still get the error
"ERROR: Method 'encode: ' not defined in Plugin 'BarcodeScanner' "
for the encode() method. I couldn't figure out which changes in CDVBarcodeScanner.mm solved the problem for scan() ... Can someone help? Thanks guys!

from barcodescanner.

trippo avatar trippo commented on May 29, 2024

I have the same problem have you find a solution to run an example with cordova 3 and barcode scanner

from barcodescanner.

trippo avatar trippo commented on May 29, 2024

@Yossarian24 have you got a working example?

from barcodescanner.

Yossarian24 avatar Yossarian24 commented on May 29, 2024

@trippo
Yes, I've got the Barcode Scanner working with Cordova 3.0.0 but only the scan() Method and NOT the encode().
All I did:

from barcodescanner.

trippo avatar trippo commented on May 29, 2024

@Yossarian24 i try but i must add -fno-objc-arc in Project - Buil Phases - compile source CDVBarcodeScanner.mm line to resolve the problem

from barcodescanner.

Yossarian24 avatar Yossarian24 commented on May 29, 2024

@trippo
Yeah you are right! I changed the ARC in XCode. After that no Errors compiling the project. There are only 4 minor "Semantic Issues" left in the zxing-all-in-one.cpp.

from barcodescanner.

Yossarian24 avatar Yossarian24 commented on May 29, 2024

Got generating QR-Codes working with https://github.com/amanuel/JS-HTML5-QRCode-Generator

I'm not really familiar with Objective-C, but in the CDVBarcodeScanner.mm the encode() method only consists of
[self returnError:@"encode function not supported"];
Can someone tell me where the encode() is implemented?

from barcodescanner.

guizmo avatar guizmo commented on May 29, 2024

Add me to the list... On ios build i get 20 errors in relation to ARC restrictions... coming from CDVBarcodeScanner.mm. Would anyone know where this is coming from? I have used the plugin on PG 2.9 before and it worked just fine

from barcodescanner.

trippo avatar trippo commented on May 29, 2024

@guizmo must add -fno-objc-arc in Project - Buil Phases - compile source - CDVBarcodeScanner.mm line to resolve the problem

from barcodescanner.

kontogiorgos avatar kontogiorgos commented on May 29, 2024

Just to mention, the CDVBarcodeScanner.mm tweak also worked for me. Thanks.

from barcodescanner.

wildabeast avatar wildabeast commented on May 29, 2024

This should be fixed now with the 3.0.0 updates courtesy of @agrieve.

from barcodescanner.

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.