-
Notifications
You must be signed in to change notification settings - Fork 775
Open
Labels
Description
Bug description
I was trying to run the flutter-examples on my macos and received following error
Could not start Dart VM service HTTP server: SocketException: Failed to create server socket (OS Error: Operation not permitted, errno = 1), address = 127.0.0.1, port = 0I researched the error and found that the issue is related to network permission on macos.
Steps to reproduce
- clone the syncfusion/flutter-examples
- open with vscode, click Start Debugging, you will see error on debug console
Code sample
I opened a PR. Please review it.
open the file macos/Runner/DebugProfile.entitlements
<!--The below configuration is added to access the network for Maps samples-->
<key>com.apple.security.network.client</key>
<true/>
<!--The below configuration is added to access the network for Maps samples-->
<key>com.apple.security.network.client</key>
<true/>SOLUTION: there should be a server and client both. the first permission can be changed from client to server.
<key>com.apple.security.network.server</key>
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
Could not start Dart VM service HTTP server: SocketException: Failed to create server socket (OS Error: Operation not permitted, errno = 1), address = 127.0.0.1, port = 0On which target platforms have you observed this bug?
macOS
Flutter Doctor output
Doctor output
[Add your output here]Thanks