在iPhone應用中集成ZXing時出現以下錯誤。iphone:集成Zxing時出錯
線路:
#import <zxing/common/Counted.h>
我得到錯誤:
error: zxing/common/Counted.h: No such file or directory
什麼地方出錯了?
如何解決?
在iPhone應用中集成ZXing時出現以下錯誤。iphone:集成Zxing時出錯
線路:
#import <zxing/common/Counted.h>
我得到錯誤:
error: zxing/common/Counted.h: No such file or directory
什麼地方出錯了?
如何解決?
Xcode找不到該文件。你在哪裏保存zxing文件夾? 您可以將其更改爲#import "zxing/common/Counted.h"
並在您的「生成」設置中將路徑添加到標題搜索路徑。
編輯: Counted.h不存在於objc src文件夾中。 它只存在於symbian和cpp文件夾中。 你不使用正確的來源。
#import "ZXingWidgetController.h"
#import "QRCodeReader.h"
應該代替 - 儘管使用他們給我的文件沒有發現太...
試過,但沒有工作了。 – Parth
Counted.h不存在於objc src文件夾中。它只存在於symbian和cpp文件夾中。你不使用正確的來源。在zxing/common/Counted.h中計算出來的COUNT爲 –
。我有同樣的問題,我檢查了。此導入來自庫,而不是庫的用戶編寫的一些自定義代碼。 – Danail