0
剛剛用4.2替換了我的XCode 4.0.1。試圖運行我目前正在處理的iPhone遊戲項目,面臨以下錯誤:XCode 4.2 cocos2d iPhone項目失敗。 id:找不到的庫-lz.1.2.3
ld:找不到-lz.1.2.3的庫 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin /鐺++失敗,退出代碼1
全文:
Ld "/Users/sergiibondar/Library/Developer/Xcode/DerivedData/HitTheRoad-ccehewjarqhrkacsekxxcuewglcx/Build/Products/Debug-iphonesimulator/Hit The Road.app/Hit The Road" normal i386
cd "/MyProjects/Hit The Road"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++ -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/sergiibondar/Library/Developer/Xcode/DerivedData/HitTheRoad-ccehewjarqhrkacsekxxcuewglcx/Build/Products/Debug-iphonesimulator -F/Users/sergiibondar/Library/Developer/Xcode/DerivedData/HitTheRoad-ccehewjarqhrkacsekxxcuewglcx/Build/Products/Debug-iphonesimulator -filelist "/Users/sergiibondar/Library/Developer/Xcode/DerivedData/HitTheRoad-ccehewjarqhrkacsekxxcuewglcx/Build/Intermediates/HitTheRoad.build/Debug-iphonesimulator/Drive.build/Objects-normal/i386/Hit The Road.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lz -ObjC -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -lz.1.2.3 -weak_framework MapKit -framework CoreLocation -weak_framework GameKit -framework AddressBookUI -framework AddressBook -framework CFNetwork -framework MobileCoreServices -lsqlite3.0 -framework SystemConfiguration -framework Security -framework QuartzCore -weak_framework UIKit -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -weak_framework Foundation -framework CoreGraphics -o "/Users/sergiibondar/Library/Developer/Xcode/DerivedData/HitTheRoad-ccehewjarqhrkacsekxxcuewglcx/Build/Products/Debug-iphonesimulator/Hit The Road.app/Hit The Road"
試圖找出什麼是錯的,發現它可能是關於在Mac OS X部署目標。所以我試圖將它設置爲10.4 10.5和10.6。不幸的是它沒有幫助。
我工作在Mac OS 10.6.8之前
有沒有人得到這樣的錯誤? 也許有人知道至少這個錯誤是關於什麼?
。確切的原因是iOS 5.0現在使用libz 1.2.5我相信。我的個人偏好是鏈接到libz1,因爲如果2.0發佈它可能會中斷。這通常也是其他鏈接的推理,比如libxml和sqlite。 –
非常感謝。它確實有效。我在錯誤的地方搜索。 – Marmot