Download MacLink Pairing
Open MacLink on your iPhone, tap Get Mac Pairing Tool, then Get Download Code. Enter the code on this Mac.
Requires macOS 14 or later.
Unzip and open MacLink Pairing, scan the QR code in MacLink on your iPhone, then sign in to this Mac.