iPhoneにPhonegap用のバーコードスキャナープラグインを統合する際に問題が発生しました。このgithubリポジトリからプラグインを入手しました:
https://github.com/phonegap/phonegap-plugins/
プロジェクトのビルドパスに関連するすべてのソースを追加する手順を含め、手順のすべての手順に従いました。また、自動参照カウントをオフにしました。すべてのファイルが適切な場所にあると思いますが、とにかくこのエラーが発生しています。
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を使用しており、cordova1.7.0がxCodeにインストールされています。ウェブでは、解決策や同様の問題を見つけることができません。
何か案は?