2016-11-10 108 views
3

我嘗試了谷歌Analytics(分析)添加到我的項目,但我看到的錯誤:GoogleToolboxForMac框架錯誤

ld: framework not found GoogleToolboxForMac 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我已經嘗試過清理我的項目,試圖刪去導出數據,嘗試添加莢「GoogleToolboxForMac/Logger'到Podfile,嘗試刪除並重新添加Pod。但是,沒有任何幫助。我看到了Stackoverflow上另一個類似主題的所有建議。

什麼可能導致描述的錯誤,我該如何解決它?

+0

看看我的回答http://stackoverflow.com/questions/40358719/framework-not-found-googletoolboxformac/41221449#41221449 – iPatel

回答

2

爲了消除鏈接錯誤,我不得不添加3個庫,通過{} PROJECTNAME>構建階段>鏈接二進制與圖書館:

  • 添加其他> {}項目名稱>窗格> Google分析>庫> libGoogleAnalytics.a
  • iOS的10.0> CoreData.Framework
  • iOS的10.0> libsqlite3.tbd
0

一旦你安裝莢文件使用Myapp.xcworkspace。不要使用普通的Xcode項目

0

可能的情況下,你有installed Pod successfully and thereafter you continued with your project by ignoring message終端

Screenshot

現在,關閉項目,並使用工作空間打開。這對我有用!