Until Google provides SPM support for its Google Cast SDK this repository delivers official XCFrameworks as Swift packages for easy integration into projects.
Use Swift Package Manager directly within Xcode. You can also declare the library as a dependency of another one directly in the associated Package.swift
manifest.
To make the generated framework available:
- Download the Dynamic XCFramework without Bluetooth binary from the GoogleCastSDK manual setup.
- Rename the corresponding zip as
GoogleCastSDK-no-bluetooth.xcframework.zip
. - Calculate the zip checksum using
swift package compute-checksum /path/to/GoogleCastSDK-no-bluetooth.xcframework.zip
- Update the
Package.swift
in this repository with the framework version number and the checksum that you obtained. Also update the deployment target according to the official SDK documentation. - Commit the changes on
main
and create a corresponding tag. - Push the commit and the tag to GitHub.
- Attach the binary to the tag on GitHub.
Do not commit the binaries in the repository, as this would slow done checkouts made by SPM as the repostory grows.