Is it theoretically possible to use in-app purchases to update an iOS app automatically? Basically, using StoreKit to replace existing code on the device? The IAP itself would be free so that the user doesn’t need to be involved.
In general terms, how would one go about implementing such a system?
I don’t have need of this, I just thought it would be interesting.
In-app purchase as the name implied, is for purchase only, no free in-app purchases are allowed.
Also, you’re not allowed to not download or install executable code.
So I don’t think what you’re thinking is not really possible.