Baseflow / Baseflow/flutter-geocoding

[Bug]: geocoding_darwin 1.0.2 Package.swift trailing commas cause unexpected ',' separator when resolving Swift Package Manager dependencies

Open
#311 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
153
Forks
92
PR merge metrics
No merged PRs in 30d

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-geocoding/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-geocoding/blob/main/geocoding/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [ ] Android
- [x] iOS

### Steps to reproduce

1. Add geocoding: ^5.0.0 to a Flutter project.
2. Enable SPM: flutter config --enable-swift-package-manager.
3. Run flutter build ios (or flutter run).

### Expected results

run

### Actual results

Building a Flutter iOS app with the experimental Swift Package Manager integration fails at dependency resolution with:
/Users/.../ios/Flutter/ephemeral/Packages/.packages/geocoding_darwin-1.0.2/Package.swift:23:9: error: unexpected ',' separator
21 | .process("PrivacyInfo.xcprivacy"),
22 | ],
23 | )
| `- error: unexpected ',' separator

### Code sample

none

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

5.0.0

### Flutter Doctor output

Doctor output

```console
[✓] Flutter (Channel stable, 3.44.8, on macOS 15.3.1 24D70 darwin-arm64, locale zh-Hans-CN) [585ms]
• Flutter version 3.44.8 on channel stable at /Users/../work/Development/Flutter/flutter_3.44.8
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 058e0af2c2 (13 days ago), 2026-07-23 10:56:21 -0700
• Engine revision 0cd610717b
• Dart version 3.12.2
• DevTools version 2.57.0
• Pub download mirror https://pub.flutter-io.cn/
• Flutter download mirror https://storage.flutter-io.cn/
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager,
omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [5.8s]
• Android SDK at /Users/fuminghui/Library/Android/sdk
• Emulator version [32.1.12.0](http://32.1.12.0/) (build_id 9751036) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version Java(TM) SE Runtime Environment (build 17.0.14+8-LTS-191)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [1,512ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [6ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (4 available) [12.0s]
• TEST (mobile) • 00008101-001A50303C44001E • ios • iOS 26.2.1 23C71
• iPhone 15 Pro (mobile) • 42C56AEC-00A0-4EA2-8EA8-EDD436DC60CA • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.1 24D70 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 151.0.7922.75
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.