Plugin development on Mac M1

maybe this post and the following ones can help you: