[firebase_core]: firebase_sdk_version.rb
lookup fails on macOS with SPM
#16868
Labels
Needs Attention
This issue needs maintainer attention.
platform: macos
Issues / PRs which are specifically for MacOS.
plugin: core
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
macOS
Description
macOS builds fail with SPM enabled due to incorrect path construction in Packages.swift
Reproducing the issue
Firebase Core version
3.8.1
Flutter Version
master (or any version with SPM support)
Relevant Log Output
Flutter dependencies
No response
Additional context and comments
The path construction is clearly wrong, since
firebase_core-3.8.1/macos/firebase_core/../../../
leaves the directory scope of the package and enters into the pub cache itself, so all bets are off as to what the relative paths are from there (perhaps this was written/tested only with overridden path dependencies?). It should be../../ios/
rather than../../../firebase_core/ios
.The same issue appears to have been fixed for iOS in #13804, but macOS is still using the same incorrect path logic that iOS used to have.
The text was updated successfully, but these errors were encountered: