Repository navigation
Closed as not planned
Closed as not planned
Copy link
Description
Operating System
macOS 15
Plugin
connectivity_plus
Version
7.1.0
Flutter SDK
stable-3.41.6-arm64
Compilation command
I have this error in build with Flet (python) + Flutter on macOS github action (macOS 15)
( ● ) Building macOS bundle...
/Users/runner/.pub-cache/hosted/pub.dev/connectivity_plus-7.1.0/macos
/connectivity_plus/Sources/connectivity_plus/PathMonitorConnectivityP
rovider.swift:29:42: error: value of type 'NWPath' has no member
'isUltraConstrained'
Dart Dependencies
Native dependencies
Compilation Error
( ● ) Building macOS bundle...
/Users/runner/.pub-cache/hosted/pub.dev/connectivity_plus-7.1.0/macos
/connectivity_plus/Sources/connectivity_plus/PathMonitorConnectivityP
rovider.swift:29:42: error: value of type 'NWPath' has no member
'isUltraConstrained'Flutter Doctor
( ●) Running Flutter doctor...
[15:57:23] Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.41.6, on macOS 15.7.4 24G517
darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK
version 36.1.0)
! Some Android licenses not accepted. To resolve this, run:
flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.Checklist before submitting a bug
- I searched issues in this repository and couldn't find such bug/problem
- I Google'd a solution and I couldn't find it
- I searched on StackOverflow for a solution and I couldn't find it
- I read the README.md file of the plugin
- I'm using the latest version of the plugin
- All dependencies are up to date with
flutter pub upgrade - I did a
flutter clean - I tried running the example project
Reacted by Tung-Chen (Jeff) Tsai
Activity
michele6000 commentedon Mar 31, 2026
if #available(macOS 26.0, *), path.isUltraConstrained {
The property
isUltraConstrainedis not available in older SDKs, and even though it is wrapped in an availability check, the compiler still fails because the symbol is unknown at compile time.Error:
value of type 'NWPath' has no member 'isUltraConstrained'
This breaks builds in CI environments or local setups that are not yet on the latest macOS SDK.
Expected behavior:
The code should compile on older SDKs, as long as the API is guarded properly.
Possible fix:
Avoid direct reference to the property or use a safer runtime check instead.
Workarounds:
Let me know if more details are needed.
vbuberen commentedon Mar 31, 2026
This is the key. I would advise you to update your Xcode to 26.x and the compilation will work again. There is no plan on bringing back Xcode 16, especially since Apple already wants all developers to use 26.x versions: https://developer.apple.com/news/?id=ueeok6yw#:~:text=Starting%20April%2028%2C%202026%2C%20apps,visionOS%2026%20SDK%20or%20later
JavadocMD commentedon Apr 3, 2026
The reasoning here for dropping Xcode 16 support is sound, but it would be appreciated to include the minimum Xcode version in the documentation/release notes.
chore: Bump XCode version to latest release
chore: Bump XCode version to latest version supported by workflow
chore: Bump XCode version to latest version supported by workflow
Pin connectivity_plus below 7.1.0 to fix iOS archive compile error