Skip to content

Fix failing iOS CocoaPods builds by removing stale SPM references from project.pbxproj#764

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ios-build-fluwx
Draft

Fix failing iOS CocoaPods builds by removing stale SPM references from project.pbxproj#764
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ios-build-fluwx

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Root Cause

The committed project.pbxproj files in both fluwx and fluwx_no_pay example apps contained XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" entries. Even with flutter config --no-enable-swift-package-manager and pod install, Xcode still attempts to resolve all SwiftPM package references declared in project.pbxproj. This triggered the following failure chain:

FlutterGeneratedPluginSwiftPackage → fluwx Package.swift../FlutterFramework (only exists during SPM builds) → build error

xcodebuild: error: Could not resolve package dependencies:
  the package at '.../packages/fluwx/ios/FlutterFramework' cannot be accessed
  (The folder "FlutterFramework" doesn't exist.)

Changes Made

  • packages/fluwx/example/ios/Runner.xcodeproj/project.pbxproj: Removed XCLocalSwiftPackageReference, XCSwiftPackageProductDependency, associated PBXBuildFile (Frameworks phase), PBXFileReference, and PBXGroup entries for FlutterGeneratedPluginSwiftPackage and ephemeral SPM paths.
  • packages/fluwx_no_pay/example/ios/Runner.xcodeproj/project.pbxproj: Same removals applied.

The SPM CI jobs (ios_fluwx and ios_fluwx_no_pay) run flutter pub get with SPM enabled, which dynamically re-adds these references at build time — so they do not need to be committed.

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
Copilot AI requested a review from JarvanMo June 22, 2026 01:27
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants