Repository navigation
Change iOS builds to use Swift Packages instead of Cocoapods - #1928
Conversation
There was a problem hiding this comment.
Code Review
This pull request migrates the iOS and tvOS dependency management from CocoaPods to Swift Package Manager (SPM). It removes the old ios_pod configuration, Podfile, and CocoaPods setup scripts, replacing them with an ios_spm directory containing Package.swift and a new CMake integration (setup_spm_headers and symlink_spm_headers). All Firebase modules, helper scripts, and documentation have been updated to support this transition. Feedback on the changes highlights a critical NameError in scripts/update_android_ios_dependencies.py due to an un-renamed variable, a potential failure in file(CREATE_LINK) in ios_spm/CMakeLists.txt if symlinks already exist, and a redundant include path in firestore/CMakeLists.txt that should be removed.
Integration test with FLAKINESS (succeeded after retry)Requested by @a-maurice on commit 2e41a1e
Add flaky tests to go/fpl-cpp-flake-tracker |
Description
Since Cocoapods is being turned down, migrate the iOS builds to Swift Packages instead. This includes both the SDK build logic, converting ios_pod to ios_spm and getting the necessary dependencies, and the scripts we have to update the version numbers.
This should not affect end users of the built SDKs, only the build process.
Testing
Running scripts locally.
Type of Change
Place an
xthe applicable box:Notes
Release Notessection ofrelease_build_files/readme.md.