Skip to content

[Bug]: "unexpected ',' separator" error being generated from Package.swift when building SPM #35

@incentfit-product

Description

@incentfit-product

Required Reading

  • Confirmed

Plugin Version

8.0.0

Cap Doctor

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌
[success] Android looking great! 👌

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

Irrelevant, app doesn't build

Device operating-systems(s)

Irrelevant, app doesn't build

What happened?

I was following the instructions here to move from cocoapods to SPM: https://capacitorjs.com/docs/ios/spm

When I got to the step to add the package dependencies, it errors with an "unexpected ',' separator" error. This is due to a trailing comma after the path parameter on line 29 in Package.swift:

path: "ios/Sources/BackgroundFetchPlugin", // <- trailing comma here

Plugin Code and/or Config

N/A

Relevant log output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions