Home > front end >  Flutter Websockets MacOS: The same code works in debug mode but not in release mode: "(OS Error
Flutter Websockets MacOS: The same code works in debug mode but not in release mode: "(OS Error

Time:01-07

Summary

I have a program using WebSockets in Flutter, the program is fully functional in debug mode, but running the same exact code in release mode causes an error.

Context

The Flutter documentation teaches us enter image description here

What I tried

  1. folder structure screenshot

    Add this section to both files:

    <key>com.apple.security.network.client</key>
    <true/>
    
  • Related