Comments (4)
Hi DynamicLeo,
Looks like the library file distributed by the ZBar team does not include
support for x86_64, which is required by the simulator only.
I think you would be able to compile for an actual device with no problems.
I will look into a way to include x86_64 support, but I can't promise when
I will be able to do it, so in the meantime, perhaps you can try this:
http://stackoverflow.com/a/24587494
Regards,
TJ
On Sep 21, 2014 9:19 AM, "DynamicLeo" [email protected] wrote:
I really like this plugin but when I build it on ios8 iphone5s it has some
wrongld: warning: ignoring file
/Users/apple/eee/platforms/ios/eee/Plugins/org.cloudsky.cordovaplugins.zbar/libzbar.a,
missing required architecture x86_64 in file
/Users/apple/eee/platforms/ios/eee/Plugins/org.cloudsky.cordovaplugins.zbar/libzbar.a
(3 slices)
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_ZBarReaderViewController", referenced from:
objc-class-ref in CsZBar.o
"_ZBarReaderControllerResults", referenced from:
-[CsZBar imagePickerController:didFinishPickingMediaWithInfo:] in CsZBar.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)—
Reply to this email directly or view it on GitHub
#3.
from cszbar.
Hi All,
i've solved the problem in my project.
Download directly the zBar libs recompiled for x86_64 support from this link: http://www.nerdvision.net/app-development/ios/zbar-sdk
Then, replace the library into the ZbarSDK folder.
After that you can have this problem, if you try to debug the code it will block execution at the line 64, 65 of CsZBar.m:
// Hack to hide the bottom bar's Info button... http://stackoverflow.com/a/16353530
UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:1] subviews] objectAtIndex:0] subviews] objectAtIndex:3];
[infoButton setHidden:YES];
For now comment this two line of code, recompile and it works!
from cszbar.
Except of commenting the lines out (to be able to hide the info Button) as @PaoloMessina mentioned, you could also replace the first of these lines with the following line (the first index is now 2 except of 1):
UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] subviews] objectAtIndex:3];
from cszbar.
Compilation errors are now fixed for both x86_64 (Simulator) and 64-bit ARM, thanks to @PaoloMessina's pull request #11.
As mentioned by @botweb, the Info button in the iOS scanning view remains hidden.
from cszbar.
Related Issues (20)
- iOS 11.0.1 NSRangeException HOT 1
- tjwoon/csZBar
- zBar not showing on iOS 11 even with #122 or #120 patch HOT 4
- Error while doing "cordova platform add android" HOT 4
- Scanner is not working anymore on iOS 11
- Crash Android on Bar code scan HOT 1
- iPhone X, iOS11.2.6 Crash HOT 3
- Problem whit ionic v4 HOT 1
- a scan is already in progress
- Ability to zoom HOT 1
- Android x86_64 HOT 1
- Is there any way to display scanner continuously? HOT 1
- would like to scan multiple qr codes simultaneously.how? HOT 2
- Can I add some custom button for back?
- Is it possible to allow html overlay in iOS and Android? HOT 2
- Message after success scanned
- Scanning only in middle of the screen
- change bg color from black to white HOT 9
- focus motog 5 plus
- Error When Build error: cannot find symbol import android.support.v4.app.ActivityCompat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cszbar.