我安装了Xcode 4.3.3。在我使用Xcode 3.2.6之前。现在,当我尝试将我在Xcode 3.2.6中制作的应用程序安装到我的iPhone 4S时,我得到以下错误:
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)
我知道为什么会收到此错误,我该如何解决?提前谢谢。
答案 0 :(得分:0)
尝试从库中删除libz-1.2.x.dylib并改为添加libz.dylib。