Hello,
The doc you mentioned is about publishing, and it only works on release/distribution mode when you archive the project and publish the app. However, you said you want to run the app on your mac, it means your project is under debug/development mode, and it needs a development provisioning profile.
On the step 3 of creating a provisioning profile, please choose Developpement-> macOS App Development instead of Distribution->App ID. Then you can download the/provisioning profile again and try to check if the issue still exists.
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.