Cannot run my Xcode project on my new iPhone

I built an app months ago and I could successfully install it and run it on my old iPhone. Today I got a new iPhone and I attempted to install and run the same app on that new phone but Xcode gave me this error message: “failed to get the task for process -1”
Screen Shot 2021-10-19 at 10.47.02 PM

the app is installed on my new iPhone but it crashes as soon as the app launches.

How can I fix this?

Welcome to the community!

Do you have a free Apple account? And signed in on Xcode?

You may also need to go into your Apple dev account and look at devices and add your new iPhone

yes, I have a dev account. I can’t install apps on any device that runs iOS 15

@karenlopez

Karen,

Is your Developer account a fully paid account or free? If it is a free account then there are restrictions on the number of Apps that can be loaded on your device. Xcode registers details about each device that has an App installed on it.

A fully paid account does not have restrictions.

What version of Xcode are you using?

Xcode 13