Until Google provides SPM support for its Google Cast SDK this repository delivers official XCFrameworks as Swift packages for easy integration into projects. Besides SPM support, this pod also adds support for the dynamic linked .xcframework.
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.
- Rename
GoogleCastSDK-ios-no-bluetooth.xcframework
toGoogleCast.xcframework
- Unzip it and rename it to
GoogleCastSDK-ios-no-bluetooth.xcframework
. - Zip it:
zip -r GoogleCast.zip GoogleCast.xcframework -x "*.DS_Store" -x "__MACOSX"
- Move the zip file to this repository folder.
To make the framework available:
- Update the
GoogleCastSDK-ios-no-bluetooth.podspec
and replace all the version with the framework version number - Update the
Package.swift
in this repository with the framework version number. - Run
swift package compute-checksum GoogleCast.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.