2016-10-28 3 views
0

誰もがこの「Apple Mac Oリンカエラー」で助けてくれるかもしれませんが、ビルドが失敗してしまい、実際に手掛かりがありません。 私はMac Ox 10.11では、SDKは最新10.0のOSに設定され、展開ターゲットは8.0です。 Frameworkとユーザヘッダ検索パスは、フレームワークの場所に設定されている。..Xcode 8フレームワークのリンカエラー、アーキテクチャi386の未定義シンボル

エラーは以下です:

ld: warning: directory not found for option '-F/Users/syedmuhammadyasir/Documents/UrduRhymes/Urdu\ Rhymes/Frameworks' 
ld: warning: ignoring file Urdu Rhymes/Frameworks/GoogleMobileAds.framework/GoogleMobileAds, file was built for unsupported file format (0x6C 0x69 0x6E 0x6B 0x20 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75) which is not the architecture being linked (i386): Urdu Rhymes/Frameworks/GoogleMobileAds.framework/GoogleMobileAds 
Undefined symbols for architecture i386: 
    "_CGSizeFromGADAdSize", referenced from: 
     -[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o 
    "_OBJC_CLASS_$_GADBannerView", referenced from: 
     objc-class-ref in URBaseViewController.o 
    "_OBJC_CLASS_$_GADInterstitial", referenced from: 
     objc-class-ref in URBaseViewController.o 
    "_OBJC_CLASS_$_GADRequest", referenced from: 
     objc-class-ref in URBaseViewController.o 
    "_kGADAdSizeBanner", referenced from: 
     -[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o 
     -[URBaseViewController getGADAdSize] in URBaseViewController.o 
     -[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o 
     -[URBaseViewController getGADAdSize] in URBaseViewController.o 
    "_kGADAdSizeFullBanner", referenced from: 
     -[URBaseViewController getGADAdSize] in URBaseViewController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

は、Googleの広告のための任意の特定のアーキテクチャまたは第三者を使用していますか? –

+0

GoogleMobileAds.frameworkを使用しています –

答えて

1

は、ビルド設定の「その他のリンカフラグ」セクションから「-ObjC」リンカーフラグを削除してください。

それとも

私はあなたがそのフレームワークを削除し、2つのポッド

pod 'Firebase/Core' 
pod 'Firebase/AdMob' 

を追加し、CocoaPodsせずに統合した場合、このDoc

0

に従うことをお勧めします。 があなたのターゲットのビルド設定であなたのその他のリンカ設定にObjCリンカフラグを追加

+0

試したリンカーフラグですが、成功しません。 –

関連する問題