2012-07-17 74 views
0

我安裝了Xcode 4.3.3。在我使用Xcode 3.2.6之前。現在,當我嘗試安裝我的應用程序,我在Xcode 3.2.6做出我的iPhone 4S,然後我得到以下錯誤:爲什麼我在Xcode 4.3.3中找不到-lz.1.2.3錯誤的庫?

Ld /Users/me/Library/Developer/Xcode/DerivedData/MyApplication-ezwzjyiebhnsmsgehafwnegjidhu/Build/Products/Debug-iphoneos/MyApplication.app/MyApplication normal armv7 
cd "/Users/me/Desktop/Old Data/desktop/UpdatedApp/MyApplication" 
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/me/Library/Developer/Xcode/DerivedData/MyApplication-ezwzjyiebhnsmsgehafwnegjidhu/Build/Products/Debug-iphoneos -F/Users/me/Library/Developer/Xcode/DerivedData/MyApplication-ezwzjyiebhnsmsgehafwnegjidhu/Build/Products/Debug-iphoneos -filelist /Users/me/Library/Developer/Xcode/DerivedData/MyApplication-ezwzjyiebhnsmsgehafwnegjidhu/Build/Intermediates/MyApplication.build/Debug-iphoneos/MyApplication.build/Objects-normal/armv7/MyApplication.LinkFileList -dead_strip -miphoneos-version-min=5.1 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework CoreLocation -framework MediaPlayer -framework MapKit -framework MobileCoreServices -lxml2 -lz.1.2.3 -framework SystemConfiguration -framework MessageUI -o /Users/me/Library/Developer/Xcode/DerivedData/MyApplication-ezwzjyiebhnsmsgehafwnegjidhu/Build/Products/Debug-iphoneos/MyApplication.app/MyApplication 

ld: library not found for -lz.1.2.3 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

任何想法,爲什麼我得到這個錯誤,我怎麼能解決這個問題。提前致謝。

+1

你是否特別需要libz的1.2.3版本?我會懷疑它。查看項目構建設置並在那裏添加(未版本化的)libz(並刪除現有的libz.1.2.3)。 – trojanfoe 2012-07-17 09:18:57

+0

項目構建設置和添加libz.1.2.5.dylib並刪除libz.1.2.3.dylib – Piscean 2012-07-17 10:09:29

+0

儘可能通用的版本鏈接(即沒有版本或版本1),除非你明確需要一個特定的版本,時間的99.9%。 – trojanfoe 2012-07-17 12:10:46

回答

0

嘗試從庫中刪除libz-1.2.x.dylib並改爲添加libz.dylib。

相關問題