当我尝试运行我的Xcode项目时,它显示我上传图像的链接器错误

时间:2016-08-31 12:00:38

标签: ios objective-c cocoa-touch testflight zbar-sdk

我有一个使用Zbar SDK的QR码阅读器项目,但是当我尝试运行它时出现此错误:

  

ld:警告:找不到选项的目录' -L / Users / rweber / work / cornell_qr_reader / TestFlightSDK2.1.4'

enter image description here

如何解决此错误?

2 个答案:

答案 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

  1. Click on your project in the left sidebar

  2. Click 'Build Settings'

  3. Go to 'Other Linker Flags'

  4. Click 'Release'

  5. Change the "-force_load" value from

    this ${TARGET_BUILD_DIR}/libCordova.a

    to ${BUILT_PRODUCTS_DIR}/libCordova.a

I hope its working for you