packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

'scanHexInt32' was deprecated in macOS 10.15

Open VittorioParagallo opened this issue 1 year ago • 1 comments

Describe the bug I get these warning during flutter build macos

/Users/xxxxxxxxx/.puro/shared/pub_cache/hosted/pub.dev/pdfx-2.6.0/macos/Classes/Hooks.swift:31:30: warning: 'scanHexInt32' was deprecated in macOS 10.15 Scanner(string: hex).scanHexInt32(&int) ^ /Users/xxxxxxxxx/.puro/shared/pub_cache/hosted/pub.dev/pdfx-2.6.0/macos/Classes/Hooks.swift:31:30: warning: 'scanHexInt32' was deprecated in macOS 10.15 Scanner(string: hex).scanHexInt32(&int) ^ /Users/xxxxxxxxx/.puro/shared/pub_cache/hosted/pub.dev/pdfx-2.6.0/macos/Classes/messages.m:598:47: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] NSObject<FlutterMessageCodec> *PdfxApiGetCodec() { ^ void 1 warning generated. /Users/xxxxxxxxx/.puro/shared/pub_cache/hosted/pub.dev/pdfx-2.6.0/macos/Classes/messages.m:598:47: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] NSObject<FlutterMessageCodec> *PdfxApiGetCodec() { ^ void

this is my flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.24.0, on macOS 14.5 23F79 darwin-x64, locale it-IT) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.92.2) [✓] VS Code (version 1.84.2) [✓] Connected device (2 available) [✓] Network resources

I use pdfrx: 1.0.82

To Reproduce Steps to reproduce the behavior:

  1. Run flutter build macos

Expected behavior No warnings i read somewhere that the HexInt32 should be changed with the 64 version

VittorioParagallo avatar Aug 24 '24 17:08 VittorioParagallo

Is there any timeline for solving this?

HEBOS avatar Sep 29 '24 12:09 HEBOS