2012-06-23 12 views
15

Kodumda ALAssetsLibrary ile bağlantı kurmaya çalışıyorum.Bağlantı oluşturulamıyor ALAssetsLibrary

Bu konuda çok çalıştım ve son noktaya birden fazla öğretici takip ettim ama yine de başladığım yerdeyim.

Ld /Users/vedprakash/Library/Developer/Xcode/DerivedData/PickThumb-gmvprlkgmgexedeojbaoeidbadnw/Build/Products/Debug-iphonesimulator/PickThumb.app/PickThumb normal i386 
    cd "/Users/vedprakash/Documents/XCode Projects/PickThumb" 
    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/vedprakash/Library/Developer/Xcode/DerivedData/PickThumb-gmvprlkgmgexedeojbaoeidbadnw/Build/Products/Debug-iphonesimulator -F/Users/vedprakash/Library/Developer/Xcode/DerivedData/PickThumb-gmvprlkgmgexedeojbaoeidbadnw/Build/Products/Debug-iphonesimulator -filelist /Users/vedprakash/Library/Developer/Xcode/DerivedData/PickThumb-gmvprlkgmgexedeojbaoeidbadnw/Build/Intermediates/PickThumb.build/Debug-iphonesimulator/PickThumb.build/Objects-normal/i386/PickThumb.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/vedprakash/Library/Developer/Xcode/DerivedData/PickThumb-gmvprlkgmgexedeojbaoeidbadnw/Build/Products/Debug-iphonesimulator/PickThumb.app/PickThumb 

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_ALAssetsLibrary", referenced from: 
     objc-class-ref in PickThumbViewController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

cevap

34

“Bağlantı İkili ile Kütüphaneleri” için AssetsLibrary çerçeve eklemek için PickThumb hedefin yapım aşaması gerekir. Ben bu hatayı alıyorum ekledikten sonra

How to "add existing frameworks" in Xcode 4?

+0

: 'ld: Uyarı: Dosya/Users/vedprakash/Belgeler görmezden/XCode Projeler/PickThumb/AssetsLibrary.framework/AssetsLibrary, dosya desteklenmeyen dosya biçimi için inşa edildi Hangi bağlantılı mimarisi değil (i386) ' – nirvana74v

+0

Bu," AssetsLibrary "çerçevesi için doğru konum değil. Bağlantıdaki talimatları takip ettiğinizi sanmıyorum. –

+0

Bağlantıda olduğu gibi çerçeveyi ekledim ve kütüphane "Kütüphanelerle Bağla İkili" altında listeleniyor – nirvana74v

İlgili konular