14

プロジェクトでSDWebImageのクラスを使用しようとしています。

プロジェクトにクラスを追加しましたが、ビルドしようとすると7つのエラーが発生します。

    Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_MKAnnotationView", referenced from:
      l_OBJC_$_CATEGORY_MKAnnotationView_$_WebCache in MKAnnotationView+WebCache.o
  "_CGImageSourceCreateIncremental", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceUpdateData", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceCopyPropertiesAtIndex", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceCreateImageAtIndex", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_kCGImagePropertyPixelHeight", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_kCGImagePropertyPixelWidth", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

私はXCodeとObjective-cを初めて使用するので、このエラーが何を意味するのかわかりませんでした。

誰?

ありがとうございました。

4

1 に答える 1

53

プロジェクトにMapKitとを追加する必要があるようです。ImageIO

それを行うには:

  1. Xcode のプロジェクト ナビゲーターの上部にあるプロジェクトをクリックします。
  2. [ビルド フェーズ] タブを選択します。
  3. 「バイナリをライブラリにリンク」ボックスを開きます。
  4. 「+」をクリックします。
  5. アプリ MapKit および ImageIO フレームワーク。
于 2012-09-06T18:26:21.777 に答える