Adding Google_analytics for iOS is not working tried many ways?

亡梦爱人 提交于 2019-12-01 03:52:58

Had same problem till I added the libGoogleAnalyticsServices.a and libsqlite3.0.dylib to "Link Binary with Libraries"

Here is my full list:

I have tried reproducing the issue that you've been facing and ended up with the same error you got. But, I was able to fix it. What I have done is, I have added the file libGoogleAnalyticsServices.a from the SDK folder to my project. Then, I added libsqlite3.0.dylib to the Link Binary With Libraries in the Build Phases tab. It worked!!!!

PS: Make sure you've added all the headers and mentioned frameworks in your project. The key is to include libGoogleAnalyticsServices.aand libsqlite3.0.dylib.

The suggestion here worked for me to add both libGoogleAnalyticsServices.a and libsqlite3.0.dylib. I am building a swift project and would upvote answer 1 if I had the privileges.

For me the problem is solved by the following steps:

pod init

Open Podfile paste the following lines(Change the Projectname to your project name)

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'Projectname' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!


  # Pods for Projectname
  pod 'GoogleAnalytics'

  target 'ProjectnameTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'ProjectnameTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!