Skip to content

Commit 9841f48

Browse files
authored
Merge pull request #262 from apoorvdwi/add-common-issues
Added `Troubleshooting Common Issues` section to CONTRIBUTING.md
2 parents 6a886df + 189f0b6 commit 9841f48

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CONTRIBUTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,23 @@ flutter test test/widgets/codegen_previewer_test.dart
128128
### How to add a new package to pubspec.yaml?
129129

130130
Instead of copy pasting from pub.dev, it is recommended that you use `flutter pub add package_name` to add a new package to `pubspec.yaml`. You can read more [here](https://docs.flutter.dev/packages-and-plugins/using-packages#adding-a-package-dependency-to-an-app-using-flutter-pub-add).
131+
132+
## Troubleshooting Common Issues
133+
134+
### Network Connection Issues on macOS
135+
136+
If you encounter a network connection error similar to the following while running your Flutter app on macOS:
137+
138+
```
139+
ClientException with SocketException: Connection failed (OS Error: Operation not permitted, errno = 1)
140+
```
141+
Add below key to `macos/Runner/DebugProfile.entitlements` and `macos/Runner/Release.entitlements`.
142+
143+
```
144+
<key>com.apple.security.network.client</key>
145+
<true/>
146+
```
147+
148+
You can read more [here](https://docs.flutter.dev/platform-integration/macos/building#setting-up-entitlements)
149+
150+

0 commit comments

Comments
 (0)