Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios][xcode 15]: Running flutter run or flutter attach throws SocketException: Send failed (OS Error: Address family not supported by protocol family, errno = 47), address = 0.0.0.0, port = 5353". #148381

Open
Gidzkid opened this issue May 15, 2024 · 8 comments
Labels
fyi-ios For the attention of iOS platform team platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@Gidzkid
Copy link

Gidzkid commented May 15, 2024

Steps to reproduce

  1. flutter attach to a physical iOS device

Expected results

Able to attach to a physical iOS device

Actual results

When I tried to use Android Studio to compile a Flutter app onto a physical iOS device, I encountered the following error message:
'Oops; flutter has exited unexpectedly: "SocketException: Send failed (OS Error: Address family not supported by protocol family, errno = 47), address = 0.0.0.0, port = 5353".'

The issue does not occur with Android (physical device/emulator) or iOS emulators, only with a physical iOS device. I also tried creating a new project and compiling it onto a physical iOS device, but the same issue occurred.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
Oops; flutter has exited unexpectedly: "SocketException: Send failed (OS Error: Address family not supported by protocol family, errno = 47), address = 0.0.0.0, port =
5353".
[flutter_43.log](https://github.com/flutter/flutter/files/15317408/flutter_43.log)
[flutter_42.log](https://github.com/flutter/flutter/files/15317410/flutter_42.log)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.1.2 23B92 darwin-arm64, locale en-MY)
    • Flutter version 3.22.0 on channel stable at /Users/chinhaowong/Documents/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (6 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/chinhaowong/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/chinhaowong/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Community Edition (version 2023.1.3)
    • IntelliJ at /Users/chinhaowong/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/231.9161.38/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.88.0

[✓] Connected device (6 available)
    • Gidz Wong (mobile)              • 00008030-001E69583A02402E            • ios            • iOS 17.4.1 21E236
    • Gidz Wong 15 (mobile)           • 00008130-001240D101A0001C            • ios            • iOS 17.4.1 21E236
    • iPhone 15 Pro Max (mobile)      • 405FF317-A240-487B-9104-EC1EF69BBAFE • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.1.2 23B92 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.1.2 23B92 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 124.0.6367.203

[✓] Network resources
    • All expected network resources are available.

• No issues found!
@Gidzkid Gidzkid changed the title Oops; flutter has exited unexpectedly [tool_crash]Oops; flutter has exited unexpectedly May 15, 2024
@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 15, 2024
@darshankawar
Copy link
Member

Thanks for the report @Gidzkid
Does it occur everytime you run flutter attach ?
Also, is it occuring after you upgraded to 3.22.0 or was it in previous version as well ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 15, 2024
@Gidzkid
Copy link
Author

Gidzkid commented May 15, 2024

Yes, it occurs every time I run 'flutter attach.' 'Flutter run' also encounters the same issue. If I remember correctly, it started happening last year after I updated my Xcode to version 15.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 15, 2024
@darshankawar
Copy link
Member

@Gidzkid
Can you run the app in profile mode (flutter run --profile) and then flutter attach to check if it helps or still gives same error ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 16, 2024
@Gidzkid
Copy link
Author

Gidzkid commented May 16, 2024

When I run the app in profile mode (using 'flutter run --profile'), it shows the same error. After installing the app, I run 'flutter attach', and it shows the same error again.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 16, 2024
@darshankawar darshankawar changed the title [tool_crash]Oops; flutter has exited unexpectedly [ios][xcode 15]: Running flutter run or flutter attach throws SocketException: Send failed (OS Error: Address family not supported by protocol family, errno = 47), address = 0.0.0.0, port = 5353". May 17, 2024
@darshankawar darshankawar added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. t: xcode "xcodebuild" on iOS and general Xcode project management fyi-ios For the attention of iOS platform team team-tool Owned by Flutter Tool team and removed in triage Presently being triaged by the triage team labels May 17, 2024
@cbracken
Copy link
Member

@Gidzkid are you using wireless debugging or are you connected via a physical cable?

@cbracken cbracken added the triaged-ios Triaged by iOS platform team label May 22, 2024
@jmagman jmagman added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds and removed triaged-ios Triaged by iOS platform team labels May 22, 2024
@Gidzkid
Copy link
Author

Gidzkid commented May 23, 2024

I tried wireless debugging and connecting via a physical cable, both giving me the same error.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 23, 2024
@loic-sharma
Copy link
Member

Could you try using flutter attach --ipv6 --verbose and see if that fixes the issue? If not, could you share the error logs from running that command?

@loic-sharma loic-sharma added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 29, 2024
@Gidzkid
Copy link
Author

Gidzkid commented May 30, 2024

Hi,

I am still encountering the same issue. Below is the error log for your reference.

flutter_01.log

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fyi-ios For the attention of iOS platform team platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

5 participants