Skip to content

Commit

Permalink
Fix file access on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
z80maniac committed Jun 27, 2024
1 parent d9d73b8 commit 5a3794c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 30 deletions.
32 changes: 16 additions & 16 deletions init_platforms.diff
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements
index dddb8a3..cd9aecc 100644
index dddb8a3..e89b7f3 100644
--- a/macos/Runner/DebugProfile.entitlements
+++ b/macos/Runner/DebugProfile.entitlements
@@ -8,5 +8,9 @@
<true/>
<key>com.apple.security.network.server</key>
<true/>
+ <key>com.apple.security.files.user-selected.read-only</key>
+ <true/>
+ <key>com.apple.security.network.client</key>
+ <true/>
@@ -3,10 +3,6 @@
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
- <true/>
- <key>com.apple.security.cs.allow-jit</key>
- <true/>
- <key>com.apple.security.network.server</key>
- <true/>
+ <false/>
</dict>
</plist>
diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements
index 852fa1a..625af03 100644
index 852fa1a..e89b7f3 100644
--- a/macos/Runner/Release.entitlements
+++ b/macos/Runner/Release.entitlements
@@ -4,5 +4,9 @@
@@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
+ <key>com.apple.security.files.user-selected.read-only</key>
+ <true/>
+ <key>com.apple.security.network.client</key>
+ <true/>
- <true/>
+ <false/>
</dict>
</plist>
10 changes: 1 addition & 9 deletions macos/Runner/DebugProfile.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<false/>
</dict>
</plist>
6 changes: 1 addition & 5 deletions macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<false/>
</dict>
</plist>

0 comments on commit 5a3794c

Please sign in to comment.