Open fmatuszewski opened 3 months ago
Hello! Since the minimum supported target is 10.14, this should be addressed.
I'll try to reproduce the issue first using GitHub CI, and if I can reproduce the compilation issue, then I'll apply your patch suggestion.
I tried to compile the project using a macos-11 image (it is the lowest I could find) and the project compiled correctly: https://github.com/fluttercommunity/plus_plugins/actions/runs/8447836608/job/23138853477?pr=2758
So I could not reproduce the compilation issue.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
Platform
Mac os 10
Plugin
device_info_plus
Version
9.1.2
Flutter SDK
3.0.0
Steps to reproduce
For older systems kIOMainPortDefault is not available in scope during compile time and so it throws an error. device_info_plus-9.1.2/macos/Classes/SystemUUID.swift:10:58: error: cannot find 'kIOMainPortDefault' in scope platformExpert = IOServiceGetMatchingService(kIOMainPortDefault, dev). If fixed that by changing runtime check to compile time check. To recreate:
in Class: /plus_plugins/packages/device_info_plus/device_info_plus/macos/Classes/SystemUUID.swift
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean