Hello,
Why i do not succeded to publish an unsigned .NET MAUI Mac Catalyst app with command line
You can do this. The only limit is the safety from Apple.
You have published an unsigned app and get the .pkg file. I misunderstand your main purpose before, your main issue is how to run the unsigned app.
Before installing the .pkg, please clean the bin/obj folder, then you can find it in Applications.
(If you still cannot find the app, please choose Apple menu > System Settings, click Privacy & Security in the sidebar, then go to Security on the right, and check if the app is not allowed)
Run the unsigned app
By default, .app and .pkg files that are downloaded from the internet can't be run by double-clicking on them. For more information, see Open a Mac app from an unidentified developer on support.apple.com.
To ensure that a .pkg installs the app to your Applications folder, copy the .pkg to outside of your build artifacts folder and delete the bin and obj folders before double-clicking on the .pkg.
From Publish an unsigned .NET MAUI Mac Catalyst app - .NET MAUI | Microsoft Learn
Update
Deleting the bin and obj folders from the project is a key step. Please follow the step on the doc above
My test:
- Remove the bin and obj folder in my project folder
- New a folder in Document folder in the mac
- move the pkg into this folder (I know you move the pkg in Desktop, please do not do like that or create a new folder in Desktop and move the pkg in this folder)
- double-click the pkg, the app will appear in that folder
- drag this app icon and move this app to Application folder
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.