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.
- Download the dynamic without Guest Mode binary from the GoogleCastSDK manual setup.
- Unzip it and rename it to
GoogleCastSDK-ios-no-bluetooth.xcframework
. - Zip it:
zip -r GoogleCastSDK-ios-no-bluetooth.xcframework.zip GoogleCastSDK-ios-no-bluetooth.xcframework -x "*.DS_Store" -x "__MACOSX"
- Move the zip file to this repository folder.
To make the framework available:
- Update the
Package.swift
in this repository with the framework version number. - Run
swift package compute-checksum GoogleCastSDK-ios-no-bluetooth.xcframework.zip
and update thePackage.swift
in this repository with the new checksum. - Commit the changes on
master
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 repository grows.