2011-10-30 4 views
0

私のXCode 4.0.1を4.2に置き換えました。XCode 4.2 cocos2d iPhoneプロジェクトが失敗しました。 id:ライブラリが見つかりませんでした-lz.1.2.3

LD:ライブラリ-lz.1.2.3 コマンド/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/binが見つかりません私は現在働いているiPhoneのゲームのプロジェクトを実行しようとすると、エラーに直面しました

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の展開ターゲットに関するかもしれないことが判明:/打ち鳴らすは++全文は、終了コード1

で失敗しました。だから私は10.4 10.5と10.6に設定しようとしました。残念ながら、それは役に立たなかった。

私は誰もが前にこのようなエラーを手に入れたのMacOS 10.6.8

に取り組んでいますか? 誰かが少なくともこのエラーについて知っていますか?

答えて

3

ファイルナビゲータのプロジェクトをクリックし、ターゲットを選択します。 にリンクされたフレームワークとライブラリまでスクロールし、使用されているlibzライブラリを見つけて削除します。名前が赤くなることがあります。次に、「+」をクリックしてlibzと入力し、バージョン1.2.3以上を追加します。多くの場合、単にlibz.dylibを選択するだけです。最後に、きれいにして再構築します。

+0

Andrewが言ったように。正確な理由はiOS 5.0がlibz 1.2.5を使用していると私は信じている。私の個人的な好みは、2.0がリリースされた場合、それが壊れる可能性があるので、libz1とリンクすることです。これは通常、libxmlやsqliteのような他のリンケージの推論でもあります。 –

+0

ありがとうございました。それはうまくいった。私は間違った場所で検索しました。 – Marmot

関連する問題