适用于iPhone/iOS的PhoneGap/Cordova条形码扫描仪插件
我在iPhone上集成Phonegap的条形码扫描插件时遇到了一些麻烦。我从这个github存储库获得了插件: 我遵循了说明中的所有步骤,包括将所有相关源添加到项目的构建路径的步骤。我还关闭了自动参考计数。我认为每个文件都在正确的位置,但无论如何,我遇到了这个错误:适用于iPhone/iOS的PhoneGap/Cordova条形码扫描仪插件,ios,cordova,phonegap-plugins,barcode,Ios,Cordova,Phonegap Plugins,Barcode,我在iPhone上集成Phonegap的条形码扫描插件时遇到了一些麻烦。我从这个github存储库获得了插件: 我遵循了说明中的所有步骤,包括将所有相关源添加到项目的构建路径的步骤。我还关闭了自动参考计数。我认为每个文件都在正确的位置,但无论如何,我遇到了这个错误: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_ALAssetsLibrary", referenced from: objc-class-ref in C
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in CDVBarcodeScanner.o
"_CVPixelBufferGetBytesPerRow", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
"_CVPixelBufferGetHeight", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
-[CDVbcsProcessor setUpCaptureSession] in CDVBarcodeScanner.o
"_CVPixelBufferGetBaseAddress", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
"_CVPixelBufferLockBaseAddress", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
"_CVPixelBufferGetWidth", referenced from:
-[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
-[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我尝试插件的测试项目时,我努力将其部署到iphone上,但当我按下“扫描”时,我得到一个错误,cordova-1.7.0.js文件丢失。我使用的是xcode 4,cordova 1.7.0安装在xcode上。在网上我找不到解决方案或类似的问题
有什么想法吗?我更新到xCode 4.3.3,然后错误消失了。也许错误是由错误引起的。插件仍然无法工作,但我认为这是另一个原因,不再与此问题相关。我更新到xCode 4.3.3,然后错误消失。也许错误是由错误引起的。插件仍然不起作用,但我认为这是另一个原因,与此问题不再相关。根据在您的讨论,您可能已经做了我刚才做的事情。在目标设置的构建阶段下,有两组链接二进制库。我正在给下面的空的那个加上。将所有库添加到上一个库中,而不是将其清空。根据您的讨论,您可能已经完成了我刚才所做的操作。在目标设置的构建阶段下,有两组链接二进制库。我正在给下面的空的那个加上。将所有库添加到上部非空库修复了它。将以下库添加到您的Xcode项目中: AVFoundation.framework AssetsLibrary.framework CoreVideo.framework libiconv.dylib 选择目标,然后显示构建阶段。在“将二进制文件链接到库”下,单击“添加”按钮,然后选择上面的框架
粗体列出的库是导致此错误发生的原因。这是在中找到的说明的摘录,将以下库添加到您的Xcode项目中: AVFoundation.framework AssetsLibrary.framework CoreVideo.framework libiconv.dylib 选择目标,然后显示构建阶段。在“将二进制文件链接到库”下,单击“添加”按钮,然后选择上面的框架
粗体列出的库是导致此错误发生的原因。这是从插件正在运行的中找到的说明摘录。我回到了phonegap 1.4.0,使用它,一切都很好。插件现在正在运行。我回到phonegap 1.4.0,使用它,一切都很好。