Fix failing iOS CocoaPods builds by removing stale SPM references from project.pbxproj#764
Draft
Copilot wants to merge 3 commits into
Draft
Fix failing iOS CocoaPods builds by removing stale SPM references from project.pbxproj#764Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job for iOS build - fluwx
Fix fluwx CocoaPods iOS CI by installing Pods before build
Jun 22, 2026
…OS build The XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" in the committed project.pbxproj caused Xcode to attempt SwiftPM dependency resolution even during CocoaPods builds. This chain: FlutterGeneratedPluginSwiftPackage → fluwx Package.swift → ../FlutterFramework (missing) caused the build to fail. Remove XCLocalSwiftPackageReference, XCSwiftPackageProductDependency, related PBXBuildFile, PBXFileReference and PBXGroup entries from both fluwx and fluwx_no_pay example projects. When the SPM CI jobs run flutter pub get with SPM enabled, Flutter will re-add these references dynamically.
Copilot
AI
changed the title
Fix fluwx CocoaPods iOS CI by installing Pods before build
Fix failing iOS CocoaPods builds by removing stale SPM references from project.pbxproj
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root Cause
The committed
project.pbxprojfiles in bothfluwxandfluwx_no_payexample apps containedXCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage"entries. Even withflutter config --no-enable-swift-package-managerandpod install, Xcode still attempts to resolve all SwiftPM package references declared inproject.pbxproj. This triggered the following failure chain:FlutterGeneratedPluginSwiftPackage→ fluwxPackage.swift→../FlutterFramework(only exists during SPM builds) → build errorChanges Made
packages/fluwx/example/ios/Runner.xcodeproj/project.pbxproj: RemovedXCLocalSwiftPackageReference,XCSwiftPackageProductDependency, associatedPBXBuildFile(Frameworks phase),PBXFileReference, andPBXGroupentries forFlutterGeneratedPluginSwiftPackageand ephemeral SPM paths.packages/fluwx_no_pay/example/ios/Runner.xcodeproj/project.pbxproj: Same removals applied.The SPM CI jobs (
ios_fluwxandios_fluwx_no_pay) runflutter pub getwith SPM enabled, which dynamically re-adds these references at build time — so they do not need to be committed.