Imac 2009 Xcode
A lot of questions here, but let's just breifly run through them…
-
It won't work with current Xcode out of the box. Without current Xcode you can't publish your app.
-
You would have to use a hack ('legal' but at your own risk) in order for it to run a reasonably recent macOS, Catalina, in order to run current Xcode - see http://dosdude1.com/software.html for patches.
-
Older Macs can't be locked solid like an iPhone. Even Firmware lock on an old Mac can be bypassed - Here's a guide from OSXDaily - Forgot a Mac Firmware Password? Don’t Panic, Here’s What To Do This wouldn't work on a new Mac but it will on old ones.
To completely wipe & start afresh you would need a USB boot stick - 2009 Macs can't use Internet Recovery for this. See How do I make a bootable USB OS X installer on a Mac? for a guide.
Last point, reflecting bmike's answer. Even if you achieve all this it's going to be dog-slow. Doing this for free/cheap requires patience.
One question per question is best here.
- yes
- yes to a point / not really
- not a concern for this old mac
I recommend you buy a Mac mini that will run Catalina for $300 or less or a new mini that runs Big Sur. You will never get your time back using old gear. Rent a mini for a week if you’re not sure what you need.
- https://macminicolo.net/