2011-03-30 41 views
5

我試圖使用ALAssetsLibrary從iphone/ipad.Im的相冊 加載圖像,在構建和存檔時收到以下警告。使用alassestsLibrary時出現錯誤

ld: warning: in /Users/mark/Projects/Speech_Recognition/Protoype_Test1/AssetsLibrary.framework/AssetsLibrary, file was built for i386 which is not the architecture being linked (armv7) 

此外,我得到的錯誤

"_OBJC_CLASS_$_ALAssetsLibrary", referenced from: 
    objc-class-ref-to-ALAssetsLibrary in PhotoPuller.o 
    ld: symbol(s) not found 
    collect2: ld returned 1 exit status 

沒有錯誤在模擬器運行時,但即時通訊沒有得到任何圖像還給我

我已經跑出什麼想法要做

回答

15

您還沒有鏈接到AssetsLibrary框架,或者您的SDK設置不是您認爲的那樣。

0

請加這兩個框架worksin到您的項目

<AssetsLibrary/AssetsLibrary.h> 
<AVFoundation/AVFoundation.h>