2017-09-07 71 views
0

我正在嘗試將Admob和Firebase實施到我的項目中。我正在用C++開發xCode。 iPhone應用程序。Admob/Firebase集成

不幸的是我有配置問題。我閱讀本指南以實施Firebase C++ SDK:https://firebase.google.com/docs/cpp/setup,同時我還在谷歌中閱讀了很多評論,但是它不起作用。

首先,我有一個的CocoaPods問題(我創建的Podfile和我增加了相應的吊艙的),當我運行「吊艙安裝」我有這樣的錯誤:

[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`. 
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`. 

我試圖擴大緩衝區,並出現相同的錯誤。 那麼,我試圖在沒有Pod的情況下集成框架。

問題是,當我添加了框架的「鏈接的框架」

Image 和我編譯它,我有這樣的錯誤:

Apple Mach-O Linker Error 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

什麼可能是我的問題嗎? 謝謝

回答

0

我正確地將框架和GoogleService-Info.plist添加到項目中。它編譯。我的問題是當我加入:

#import "Firebase.h" 

去AppDelegate.h。 我有超過20個錯誤(語義和分析問題)。