Search code examples
xcodeapple-developerios15

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?


Solution

  • 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.