Skip to content

[Compile]: value of type 'NWPath' has no member 'isUltraConstrained' #3787

Closed as not planned

Description

@michele6000

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

Activity

  1. michele6000 commented on Mar 31, 2026

    @michele6000
    Author

    if #available(macOS 26.0, *), path.isUltraConstrained {

    The property isUltraConstrained is 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:

    • Downgrading to connectivity_plus 6.x
    • Manually patching the plugin
    • Upgrade to macOS 26

    Let me know if more details are needed.

  2. vbuberen commented on Mar 31, 2026

    @vbuberen
    Collaborator

    Xcode - develop for iOS and macOS (Xcode 16.4)

    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

  3. JavadocMD commented on Apr 3, 2026

    @JavadocMD

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiletriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions