First iOS app -> Command CodeSign failed

Hey !

I just get into iOS to make my first app.
until now, I was able to run the app in the simulator, but now if I want to test it with my iPhone I get this error :

Command CodeSign failed with a nonzero exit code

I already try to much tutorial and they are not up to date…
I have Xcode 10.3 → iPhone8 iOS 14.4.2
Any suggestion ?

Thank’s

Hey,

you need an Apple Developer account to run apps on your phone.
Then make sure automatically managing signing is enabled and in Team your ID is selected. Then you might have to try cleaning the build: Product > Clean Build folder
After this it should work.