-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Steps to reproduce
- Use in_app_purchase
- Build for macOS 10.15 (Catalina)
Note i had issue #153917 opened, but was rightly told that i was on an unsupported macos/xcode combination. I have now updated but it still doesnt work. I have also tried flutter clean and deleting my podfiles and resetting them up. Flutter doctor is now showing i need recommended xcode 15 which isnt possible on the hardware i have :(
Expected results
Want to debug the app, can only run it with chrome
Actual results
flutter run
Connected devices:
macOS (desktop) • macos • darwin-x64 • macOS 12.7.6 21H1320 darwin-x64
Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.138
Checking for wireless devices...
Please choose one (or "q" to quit): 1
Launching lib/main.dart on macOS in debug mode...
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:17:50: error: expected ','
ios(3.0), macos(10.7), watchos(6.2), visionos(1.0));
^
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:21:52: error: expected ','
ios(13.0), macos(10.15), watchos(6.2), visionos(1.0));
^
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:38:60: error: expected ','
visionos(1.0));
^
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:43:64: error: expected ','
API_AVAILABLE(ios(7.0), macos(10.9), watchos(6.2), visionos(1.0));
^
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:47:69: error: expected ','
- (void)presentCodeRedemptionSheet API_AVAILABLE(ios(14.0), visionos(1.0))
^
#import "Headers/in_app_purchase_storekit-umbrella.h"
^
#import "FIAPaymentQueueHandler.h"
^
#import "FLTPaymentQueueHandlerProtocol.h"
^
#import "FLTPaymentQueueProtocol.h"
^
/Users/.../.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.3.17+3/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h:54:67: error: expected ',' - (void)showPriceConsentIfNeeded API_AVAILABLE(ios(13.4), visionos(1.0))
^
:0: error: could not build Objective-C module 'in_app_purchase_storekit'
Command SwiftCompile failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **
Building macOS application...
Error: Build process failed
Code sample
Code sample
name: testapp
description: "My test app"
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: '>=3.4.4 <4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
file_picker: ^8.0.6
http: ^1.2.2
reactive_forms: ^17.0.1
reactive_file_picker: ^3.0.0
mime: ^1.0.5
in_app_purchase: ^3.2.0
hive: ^2.0.4
hive_flutter: ^1.1.0
path_provider: ^2.0.11
flutter_secure_storage: ^9.2.2
uuid: ^4.5.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.1.7
hive_generator: ^2.0.1
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^4.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.1, on macOS 12.7.6 21H1320 darwin-x64, locale en-AU)
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[!] Xcode - develop for iOS and macOS (Xcode 14.2)
! Flutter recommends a minimum Xcode version of 15.
Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.85.2)
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 3 categories.