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

前端 未结 4 1391
独厮守ぢ
独厮守ぢ 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:14

    This is a bug in Cocoapods 0.37.0. It has been logged in their tracker as issue #3499.

    Workaround

    • Add $(SRCROOT)/Pods/GoogleAnalytics-iOS-SDK to the User Header Search Paths (set to Recursive) in the app target's Build Settings.
    • Reference the Google Analytics header directly in the Bridging Header with #import "GAI.h"

提交回复
热议问题