Can't find headers for GoogleAnalytics-iOS-SDK with Cocoapods 0.37, Swift, frameworks

前端 未结 4 1390
独厮守ぢ
独厮守ぢ 2021-02-05 09:24

Using cocoa pods 0.37.0 in a Swift project, with use_frameworks! set in the podfile, I am unable to access the header files for the GoogleAnalytics-iOS-SDK pod.

How shou

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 10:12

    I don't know if this is the correct answer or not, but the way we got it to work was to manually import libGoogleAnalyticsServices.a and not via cocoapods.

    Locate libGoogleAnalyticsServices.a and drag it into the project, then add it to Linked Frameworks and Libraries (if it's not there already) and you're good to go. Don't forget to remove it from your Podfile.

    edit:
    Don't forget to add the header files to your bridging-header

提交回复
热议问题