0
我有一個包含b和c版本的框架(FRAME1),然後在另一個框架(FRAME2)中包含這個框架作爲依賴關係。在框架內連接框架時未發現框架問題
然而,當我建式2它死了有:ld:framework not found <nameofframework>
我所做的幀1 /資源庫/框架的安裝位置,我也把它設置爲@rpath
但是仍然幀2錯誤出。我已經對框架搜索路徑進行了硬編碼,並且也沒有改變這種情況。
這裏是Xcode錯誤輸出:
Ld build/Release/TSVideoAppKit.framework/Versions/B/TSVideoAppKit normal i386
cd /Users/benb/Projects/Telestream/swRelease/Pipeline/2.6/Dib/Code/Macintosh/Frameworks/TSVideoAppKit
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Xcode3/usr/bin/g++-4.0 -arch i386 -dynamiclib -isysroot /Xcode3/SDKs/MacOSX10.6.sdk -L/Users/benb/Projects/Telestream/swRelease/Pipeline/2.6/Dib/Code/Macintosh/Frameworks/TSVideoAppKit/build/Release -F/Users/benb/Projects/Telestream/swRelease/Pipeline/2.6/Dib/Code/Macintosh/Frameworks/TSVideoAppKit/build/Release -filelist /Users/benb/Projects/Telestream/swRelease/Pipeline/2.6/Dib/Code/Macintosh/Frameworks/TSVideoAppKit/build/TSVideoAppKit.build/Release/TSVideoAppKitFramework.build/Objects-normal/i386/TSVideoAppKit.LinkFileList -install_name /Library/Frameworks/TSVideoAppKit.framework/Versions/B/TSVideoAppKit -Xlinker -rpath -Xlinker /Library/Frameworks -mmacosx-version-min=10.5 -framework TSPipelineEngine -framework Cocoa -framework CoreVideo -framework OpenGL -framework QTKit -framework QuickTime -framework CoreAudio -single_module -compatibility_version 1 -current_version 1 -o /Users/benb/Projects/Telestream/swRelease/Pipeline/2.6/Dib/Code/Macintosh/Frameworks/TSVideoAppKit/build/Release/TSVideoAppKit.framework/Versions/B/TSVideoAppKit
ld: framework not found TSPipelineEngine
collect2: ld returned 1 exit status
Command /Xcode3/usr/bin/g++-4.0 failed with exit code 1
感謝所有幫助:)
我已經看過這一點,但它似乎didnt幫助:http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/ – theprojectabot
對不起,但你的問題太難理解了。請提供真實的示例,而不是foo,bar,並編寫完整的鏈接器錯誤。 – Macmade