-2
 ld: warning: ignoring file /Users/macmini/Desktop/Test/iAd.framework/iAd, missing required architecture i386 in file /Users/macmini/Desktop/Test/iAd.framework/iAd (2 slices)

Undefined symbols for architecture i386:

  "_ADBannerContentSizeIdentifier320x50", referenced from:
      -[ViewController viewDidLoad] in ViewController.o

  "_OBJC_CLASS_$_ADBannerView", referenced from:
      objc-class-ref in ViewController.o

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

ここに画像の説明を入力

4

2 に答える 2

0

あなたの問題は、組み込みの iAd フレームワークを使用していないことだと思います。不足しているアーキテクチャの警告のパスを正しく解釈すると、プロジェクトが使用する iAd フレームワークはプロジェクト ディレクトリ内にあります。

フレームワークはそこにあるべきではありません。この回答の指示に従って、このフレームワークを削除し、システム フレームワークを追加します。

于 2013-09-05T11:24:02.210 に答える