2012-05-08 73 views
0

Iam開發一個應用程序。在那我使用libz.1.dylib framework.And此應用程序將在模擬器中正常工作。當我嘗試存檔此應用程序我得到了像蘋果的Mach-O連接一個錯誤error.And顯示像蘋果Mach-O鏈接器錯誤libz.1.dylib框架

/Users/wifin/Library/Developer/Xcode/DerivedData/StudyApp-fhamcsbyepwhdebjbmkfyfbroacl/Build/Intermediates/ArchiveIntermediates/IpadExStudyApp/InstallationBuildProductsLocation/Applications/StudyApp.app/StudyApp normal armv7 
cd /Users/wifin/Desktop/K.V.Naresh/SmartSvn/27-04-2012 
setenv IPHONEOS_DEPLOYMENT_TARGET 3.0 
setenv PATH "/Users/wifin/Desktop/software/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/wifin/Desktop/software/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Users/wifin/Desktop/software/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Users/wifin/Desktop/software/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/wifin/Library/Developer/Xcode/DerivedData/StudyApp-fhamcsbyepwhdebjbmkfyfbroacl/Build/Intermediates/ArchiveIntermediates/IpadExStudyApp/BuildProductsPath/Release-iphoneos -F/Users/wifin/Library/Developer/Xcode/DerivedData/StudyApp-fhamcsbyepwhdebjbmkfyfbroacl/Build/Intermediates/ArchiveIntermediates/IpadExStudyApp/BuildProductsPath/Release-iphoneos -filelist /Users/wifin/Library/Developer/Xcode/DerivedData/StudyApp-fhamcsbyepwhdebjbmkfyfbroacl/Build/Intermediates/ArchiveIntermediates/IpadExStudyApp/IntermediateBuildFilesPath/StudyApp.build/Release-iphoneos/StudyApp.build/Objects-normal/armv7/StudyApp.LinkFileList -dead_strip -fobjc-arc -miphoneos-version-min=3.0 -lz -lsqlite3.0 -framework AVFoundation -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/wifin/Library/Developer/Xcode/DerivedData/StudyApp-fhamcsbyepwhdebjbmkfyfbroacl/Build/Intermediates/ArchiveIntermediates/IpadExStudyApp/InstallationBuildProductsLocation/Applications/StudyApp.app/StudyApp 

LD錯誤:庫找不到-lz 鐺:錯誤:連接命令,退出代碼爲1(使用-v看不到調用)

那麼請告訴我如何解決這個錯誤。

+0

你檢查這圖書館在構建階段標籤? – rishi

+0

s.it在那個地方可用 – user1381821

回答

2

編輯:檢查每個模塊和lib你期望能夠在構建實際上是在構建

this SO接聽和this答案也爲更多的鐺錯誤,什麼嘗試。

你還是應該對libz進行鏈接作爲理所當然的事:

,而不是針對你需要對libz.dylib鏈接libz.1.dylib聯的

刪除了libz.1.dylib項從你的連接設置並添加libz.dylib手動

enter image description here

+0

沒有變化。將出現錯誤。 – user1381821

+0

然後,它不是與libz本身。 – Damo

+0

那麼問題是什麼.iam使用xcode 4.3.2和ios 5.I在單獨的文件夾中安裝了xcode。它是那個問題。 – user1381821

相關問題