You can add the following code in your .cargo/config.toml :
.cargo/config.toml
[build] rustflags = ["-Clink-arg=-lobjc", "-Clink-arg=-framework", "-Clink-arg=AppKit"]
With this you don't have to pass arguments every time and can just do cargo run --release
cargo run --release