我有一个使用Zbar SDK的QR码阅读器项目,但是当我尝试运行它时出现此错误:
ld:警告:找不到选项的目录' -L / Users / rweber / work / cornell_qr_reader / TestFlightSDK2.1.4'
如何解决此错误?
答案 0 :(得分:0)
I think you have not properly put your third party library in your xcode bundle. Your library is not properly copied i think or some file is missing in library as warning shows that directory not found
.
When drag and drop your library in xcode, you get a popup, in that copy item if needed
and add to targets
must be checked. and create group
should be also checked.
Refer this post it may helpful.
答案 1 :(得分:0)
For me its working
Click on your project in the left sidebar
Click 'Build Settings'
Go to 'Other Linker Flags'
Click 'Release'
Change the "-force_load" value from
this ${TARGET_BUILD_DIR}/libCordova.a
to ${BUILT_PRODUCTS_DIR}/libCordova.a
I hope its working for you