-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FilePicker Does not show in Mac Catalyst #20994
Comments
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Duplicate of #15126 |
it's not a duplicate. it returns null after showing the open file dialog. but I cannot even see the open file dialog. |
@mcferry Did you add entries to the entitlements file (not info.plist)? <key>com.apple.security.assets.movies.read-only</key>
<true/>
<key>com.apple.security.assets.music.read-only</key>
<true/>
<key>com.apple.security.assets.pictures.read-only</key>
<true/>
<key>com.apple.security.files.downloads.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.personal-information.photos-library</key>
<true/>
Also in case it's a typo - if you're adding code to code behind file you should use FileResult? selectedFile = await FilePicker.Default.PickAsync(); and not (FYI the above line for me works on macOS to show the dialog. But unfortunately it always returns null after selecting files at this moment of time) |
Mate Thanks a lot. now It is working and you also are right it returns null. |
Description
File Picker does not show up at all on mac catalyst. and application stays on the await of PickAsync command.
Version 17.6.9 (build 415)
Runtime
.NET 8.0.201 (64-bit)
Architecture: maccatalyst-x64
Steps to Reproduce
Create a new .NET Maui App
Use code above inside the counter button to select a file.
Link to public reproduction project repository
na
Version with bug
8.0.6 SR1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
Sonoma 14.1
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: