With iOS, you have to be an Apple developer paying $99/yr to do ad-hoc signing, I'm guessing it's the same now for MacOS..
Although instead of lasting 1 year they only last 7 days, but there is no fee for a user to sign and install their own binaries.
To clarify iOS, so the app erases itself after 7 days? Or is it something like you can install an app for only 7 days after downloading/using Xcode?