Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 15 Untrusted Developer issue

I have updated recently to a new iOS 15 and after I built and run my application in Xcode, while have been logged in with a same developer account as before iOS 15 installation, I get this message:

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

and the error log:

Could not launch “my-project0name” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: The operation couldn’t be completed. Unable to launch com.xyz.xyz.xyz because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. User Info: { DVTRadarComponentKey = 855031; IDERunOperationFailingWorker = DBGLLDBLauncher; RawUnderlyingErrorMessage = "The operation couldn\U2019t be completed. Unable to launch com.xyz.xyz.xyz because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user."; }

System Information

macOS Version 11.6 (Build 20G165) Xcode 13.0 (19234) (Build 13A233) Timestamp: 2021-09-21T12:36:18+02:00

Earlier (on iOS14), this could be solved by going to:

Settings.app -> General -> Profile -> Select Profile -> Trust

But now (on iOS15) I can't actually find it at that location. How would I fix this?

like image 655
Whirlwind Avatar asked Sep 21 '21 10:09

Whirlwind


People also ask

How do I fix untrusted developer on iPhone?

Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.

How do I enable developer options in iOS 15?

To turn on Developer Mode, open the Settings app on your iPhone. Now, scroll down a bit and select Privacy & Security. (It's right after the Battery option.) Inside Privacy & Security, scroll down and tap on Developer Mode.

How to fix the ‘untrusted developer’ error on iOS?

Here’s how you can fix the ‘Untrusted Developer’ error on iOS. This applies to iOS 8 and later. Open the Settings app and go to General>Device Management.

Can you trust any developer’s app on your iPhone and iPad?

You can trust any developer’s app on your iPhone and iPad by using this method on sideloaded apps. Sideloading apps on to iPhones and iPad have become increasingly popular among iOS and iPadOS users recently, since it doesn’t require a jailbreak anymore.

Did you install an iOS or iPadOS app that’s not from the App Store?

Did you install an iOS or ipadOS app to iPhone or iPad that’s not from the Apple App Store by sideloading? If so, you will not be able to open this app on your iPhone or iPad right away and instead, you’ll get an “Untrusted Developer” message. Apple has some strict rules on what apps can be published to the App Store.

How do I trust an app on my iOS/iPadOS device?

Trusting an app is a pretty easy process compared to sideloading an app on to your iOS/iPadOS device. Simply follow the steps below to get started. Open “Settings” from the home screen of your iPhone or iPad. In the settings menu, scroll down and tap on “General”.


Video Answer


4 Answers

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!

like image 93
Emil Avatar answered Oct 16 '22 13:10

Emil


As @ujell pointed out. The provisioning profile generated prior iOS 15 is preventing installation on the new release. Therefore, you will need to generate a new provisioning profile for your app. Try the following:

  • Quit Xcode
  • Go to the directory of cached provisioning profiles (cd ~/Library/MobileDevice/Provisioning Profiles/)
  • Back up the existing files to another directory
  • Remove all profiles listed under ~/Library/MobileDevice/Provisioning Profiles/
  • Launch Xcode
  • Install/run the app on your device

Xcode will detect that there are no eligible profiles on your local system and request a new one during the next build to a device. The new profile will be compliance with iOS 15 provisioning.

NOTE: if it still doesn't work, then install the iOS 15.2 beta release (Build 19C5026i or later) on your device and try the steps above again.

like image 7
Al Bencomo Avatar answered Oct 16 '22 11:10

Al Bencomo


Indeed, it looks like, the problem occurs only with IOS >hardware< real devices running >= iOS 15

I see no option in Settings allowing me to set the app dev as trusted.

This does NOT occur with my older (real) iPad Air, running with iOS 12.5. The app runs immediately without prompting for trust etc.

It also runs without problems on Xcode's simulator devices with iOS 15. So yes, I think it is an iOS 15 and/or Xcode issue. reported this to Apple.

like image 7
Ted van Gaalen Avatar answered Oct 16 '22 11:10

Ted van Gaalen


Ios15 changes trusted application position to:

settings -> general -> vpn and device manage

then you can see your application under the Developer App, click it and verify it

like image 2
woder Avatar answered Oct 16 '22 12:10

woder