It's just a xcframework downloaded from podspec link and Package.swift file with target declaration. Temporary solution until Google makes it available from the box.
- Open GoogleAnalytics podspec list in CocoaPods repo: https://github.com/CocoaPods/Specs/tree/master/Specs/4/9/c/GoogleAnalytics
- Open the target version folder (for example 3.21.0)
- Open the podspec file and find the
source
object - Download archive following the link in
source
object - Replace old xcframework in repo with new xcframework from archive
- Push changes to the repository
- Update swift package in Xcode
Inspired by: