Skip to content

[Bug]: cap9-alpha Duplicate comma in Package.swift with npx cap sync ios #8504

Description

@ptmkenny

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 8.4.0
@capacitor/core: 8.4.0
@capacitor/android: 8.4.0
@capacitor/ios: 8.4.0

Installed Dependencies:

@capacitor/cli: 9.0.0-alpha.3
@capacitor/core: 9.0.0-alpha.3
@capacitor/android: 9.0.0-alpha.3
@capacitor/ios: 9.0.0-alpha.3

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When I run npx cap sync iOS, ios/App/CapApp-SPM/Package.swift b/ios/App/CapApp-SPM/Package.swift is updated to have a double comma in the target:

         .target(
             name: "CapApp-SPM",
             dependencies: [
-                .product(name: "Capacitor", package: "capacitor-swift-pm"),
+                .product(name: "Capacitor", package: "capacitor-swift-pm"),,
                 .product(name: "CapacitorCommunityAppIcon", package: "CapacitorCommunityAppIcon"),

This breaks the build.

Expected Behavior

No invalid double comma should be added.

Project Reproduction

None

Additional Information

No response

Metadata

Metadata

Assignees

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions