Skip to content

SDK version 2025.6.1 update has build failures #40

@shawnAshton

Description

@shawnAshton

Error description

When trying to build the project in xcode, I get the following error that is preventing the project from building. This appears to be the first of a few more bugs that relates to the transition from the older version to 2025.6.1.

/Users/myUser/.pub-cache/hosted/pub.dev/square_mobile_payments_sdk-2025.6.1/ios/Classes/Mappers/PaymentMapper.swift:37:31 Missing argument for parameter 'processingMode' in call

This is in the file ios/.symlinks/plugins/square_mobile_payments_sdk/ios/Classes/Mappers/PaymentMapper.swift.

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale en-US) [473ms]
• Flutter version 3.32.0 on channel stable at /Users/sashton/fvm/versions/3.32.0
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (2 weeks ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [494ms]
• Android SDK at /Users/sashton/Library/Android/sdk
✗ cmdline-tools component is missing.
Try installing or updating Android Studio.
Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable.
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/to/macos-android-setup for more details.

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

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

[✓] Android Studio (version 2022.1) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.100.2) [6ms]
• VS Code at /Users/sashton/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.112.0

[✓] Connected device (4 available) [6.1s]
• Shawn’s iPhone (wireless) (mobile) • 00008120-000A54E8260B401E • ios • iOS 18.5 22F76
• iPad Pro (11-inch) (4th generation) (mobile) • 38B5E549-00B9-480C-9351-343356CDB39B • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.56

[✓] Network resources [521ms]
• All expected network resources are available.

Related Thought

The new (flutter) payment function requires a processingMode (as a num) within the payment parameters. I see a processingMode enum available. shouldn't PaymentParameters use this enum instead of a num?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions