I am using my free Apple developer account (Apple ID) for learning to develop iOS apps with Xcode. My iOS version is 13.5 and I am running Xcode 11.5 on Mac Catalina version 10.15.4.
I created a simple app that prints some text on the screen on my iPhone X, and when I tried to run the app, Xcode returned an error:
"Unable to install app", error code: -402620383.
When I clicked for more details, I got a more detailed description of the error:
"The maximum number of apps for free development profiles has been reached."
After much search on the Internet, I tried the following fixes and none of these worked:
Creating a new Apple ID and link that to Xcode.
Unpaired my iPhone X/deleted the provisioning profiles in windows/devices in Xcode.
Checked in the windows/devices and simulators and there were no apps installed.
The interesting thing is that I tried running the app on my wife's iPhone X (running iOS 13.5 as well) and it worked. Digging a little deeper, I noticed device management under settings/general is missing in my iPhone but present in my wife's iPhone. The profile of the app I was trying to install in device management. Maybe that is the cause of the problem. I really don't know what to do and would appreciate help on this, thanks!