2011-03-28 64 views
0

我使用條形碼API在我的應用程序,當我試圖構建應用程序的iPhone上測試它顯示了以下錯誤... 「 庫沒有發現-lbardecode collect2:LD返回1退出狀態 命令/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2失敗,退出代碼1 「如何修復庫bug?

回答

1

您have'nt包括相關項目中的library (framework)barcode API

編輯:用下面的SO帖子找到你的解決方案..

library not found - Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

+0

@Anand:通過教程去爲你的項目http://wiki.remobjects.com/wiki/Linking_Custom_Frameworks_from_your_Xcode_Projects – Jhaliya 2011-03-28 06:10:59

+0

我正在包括添加自定義的框架,但它表明,錯誤 – Anand 2011-03-28 06:11:03

+0

@Anand:與第一清潔嘗試再建。 .. – Jhaliya 2011-03-28 06:11:56

0

我解決我的問題如下:

在搜索路徑,庫搜索路徑,雙擊並添加以下內容:

$(SRCROOT)/libbardecode/Release$(EFFECTIVE_PLATFORM_NAME) 

那麼這將正確版本的鏈接libbardecode.a,無論你使用哪個目標。