0

我安装了 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)

知道为什么我会收到此错误以及如何解决它。提前致谢。

4

1 回答 1

0

尝试从库中删除 libz-1.2.x.dylib 并添加 libz.dylib。

于 2012-08-23T06:27:42.757 回答