Is there a way to log in to an iCloud account programmatically (assuming I have the UserID and Password)?

I would like to have the user enter the iCloud credentials and the app will log into the iCloud account "automatically".

Replies

The iCloud account used affects the entire device. Logins are between the user and the system. There is no need for your app to get in the middle of that process and have access to those credentials.


Perhaps if you explained why your app requires such reach someone could suggest an applicable process.

The app can only access the iCloud account (the key-value file and documents and core data) defined by the users current Apple ID shown in the first page of Settings. You can use CloudKit JS to access any user's private database in CloudKit.


see:

https://developer.apple.com/library/archive/documentation/General/Conceptual/iCloudDesignGuide/Chapters/Introduction.html#//apple_ref/doc/uid/TP40012094-CH1-SW1


https://developer.apple.com/documentation/cloudkitjs

Ipad air 2 a1566 dmpnfelug5vt icloud unlock id or password help me