Closed newakb closed 7 months ago
Hi, @AcAkb ! Thank you for your issue! What is your target platform? iPhone / Android / Macbook?
Ok, I can reproduce it for Maccatalyst. Something broken on the new MAUI version. You can continue using it for iOS and Android
As I understand it, something changed in the Entitlements.plist
file. Just add this two lines to your Platforms/MacCatalyst/Entitlements.plist
file:
<key>com.apple.security.network.server</key>
<true/>
For example, my Entitlements.plist
file:
<?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">
<!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.-->
<dict>
<!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. -->
<key>com.apple.security.app-sandbox</key>
<true/>
<!-- When App Sandbox is enabled, this value is required to open outgoing network connections. -->
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
I think you should create a copy of this file and add the com.apple.security.network.server
option only for debug configuration.
Thanks! Updating the Entitlements.plist
fixed my issue.
[HotReload][Error]: Permission denied
That ^^ is what I see in my Debug Console in VSCode on my device. Here is what I did after installing the extension:
And my MauiProgram.cs: