How to unlink someone else's Icloud account from my icloud
A while ago, my phone broke and was no longer usable. I removed my sim card and put it into an old phone my friend (no longer in contact) had but didn't use. From that, our two icloud accounts are linked somehow & I constantly get pop ups that I input the wrong icloud password. I also can't update any of my apps on app store without imputing his icloud password, which I do not know. Although, His icloud account doesn't show up anywheres in my settings or in app store. Help! I need to update ALL my apps.
iPhone 11 Pro Max, iOS 17