I've created a Mac app and I'd like to share it to my iPhone and run it there, but when I share it via mail or airdrop, I can't open it.
You simply can't run a MacOS application on IOS. Instead, remake it with for example Xcode
so the application can run on your iPhone.