Skip to content

Path resolving issue #322

Closed Answered by temeddix
TheTharin asked this question in Q&A
Discussion options

You must be logged in to vote

Hello TheTharin :)

This is a very common issue related to macOS file access permission. By default, Flutter apps on macOS don't have access to files on your disk. To resolve this issue, you can modify some app config files.

macos\Runner\DebugProfile.entitlements:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<false/>
	<key>com.apple.security.cs.allow-jit</key>
	<true/>
	<key>com.apple.security.network.server</key>
	<true/>
</dict>
</plist>
'

macos\Runner\Release.entitlements:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTY…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheTharin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #321 on May 13, 2024 22:54.