Home > Mobile >  xcode build to iPhone device it has an invalid code signature
xcode build to iPhone device it has an invalid code signature

Time:09-22

I wanted to build my project in my iPhone, I got this error message

The operation couldn’t be completed. 
Unable to launch com.xxxx.test because it has an invalid code signature, 
inadequate entitlements or its profile has not been explicitly trusted by the user.

I tried to go to settings> general> VPN and device management but I have nothing inside it I only have the possibility to log in with a work or school account and nothing else. My app does not appear in the VPN and device management section therefore I cannot authorize anything.How can I fix it? Thanks.

Xcode 13.0 iPhone X iOS 15

CodePudding user response:

From what i understand, this might be a bug connected to iOS 15 / xcode 13.

I found a solution which is to create a new Apple ID and use it to sign your app in xcode.

You can add a new team by going into "Signing & Capabilities"-tab and select "Add account" where you select a team.

Once you've done this and run the application on your device again, the option to trust the application in Settings > General > Device Management should appear!

  • Related