Invalid code signature problem with Xcode12

I'm practicing a swift 5 class, and have this issue:

Could not launch “I AM RICH”

Domain: IDEDebugSessionErrorDomain

Code: 3

Failure Reason: The operation couldn’t be completed. Unable to launch com.superdie.I-AM-RICH because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.

User Info: {

    DVTRadarComponentKey = 855031;

    RawLLDBErrorMessage = "The operation couldn\U2019t be completed. Unable to launch com.superdie.I-AM-RICH because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.";

}

I'm not sure what can I do, some help would be nice :)

Actually installing own Xcode created Cert on iOS 15 seam not to work any more, still got the error also after installing the cert.

Details

Could not launch “fak10”

Domain: IDEDebugSessionErrorDomain

Code: 3

Failure Reason: The operation couldn’t be completed. Unable to launch org.reactjs.native.example.fak10 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 org.reactjs.native.example.fak10 because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.";

}

--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {

    "device_model" = "iPhone13,2";

    "device_osBuild" = "15.0.1 (19A348)";

    "device_platform" = "com.apple.platform.iphoneos";

    "launchSession_schemeCommand" = Run;

    "launchSession_state" = 1;

    "launchSession_targetArch" = arm64;

    "operation_duration_ms" = 6377;

    "operation_errorCode" = 3;

    "operation_errorDomain" = IDEDebugSessionErrorDomain;

    "operation_errorWorker" = DBGLLDBLauncher;

    "operation_name" = IDEiPhoneRunOperationWorkerGroup;

    "param_consoleMode" = 0;

    "param_debugger_attachToExtensions" = 0;

    "param_debugger_attachToXPC" = 1;

    "param_debugger_type" = 5;

    "param_destination_isProxy" = 0;

    "param_destination_platform" = "com.apple.platform.iphoneos";

    "param_diag_MainThreadChecker_stopOnIssue" = 0;

    "param_diag_MallocStackLogging_enableDuringAttach" = 0;

    "param_diag_MallocStackLogging_enableForXPC" = 1;

    "param_diag_allowLocationSimulation" = 1;

    "param_diag_gpu_frameCapture_enable" = 0;

    "param_diag_gpu_shaderValidation_enable" = 0;

    "param_diag_gpu_validation_enable" = 0;

    "param_diag_memoryGraphOnResourceException" = 0;

    "param_diag_queueDebugging_enable" = 1;

    "param_diag_runtimeProfile_generate" = 0;

    "param_diag_sanitizer_asan_enable" = 0;

    "param_diag_sanitizer_tsan_enable" = 0;

    "param_diag_sanitizer_tsan_stopOnIssue" = 0;

    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;

    "param_diag_showNonLocalizedStrings" = 0;

    "param_diag_viewDebugging_enabled" = 1;

    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;

    "param_install_style" = 0;

    "param_launcher_UID" = 2;

    "param_launcher_allowDeviceSensorReplayData" = 0;

    "param_launcher_kind" = 0;

    "param_launcher_style" = 0;

    "param_launcher_substyle" = 0;

    "param_runnable_appExtensionHostRunMode" = 0;

    "param_runnable_productType" = "com.apple.product-type.application";

    "param_runnable_swiftVersion" = "5.5";

    "param_runnable_type" = 2;

    "param_testing_launchedForTesting" = 0;

    "param_testing_suppressSimulatorApp" = 0;

    "param_testing_usingCLI" = 0;

    "sdk_canonicalName" = "iphoneos15.0";

    "sdk_osVersion" = "15.0";

    "sdk_variant" = iphoneos;

}

--

System Information

macOS Version 11.6 (Build 20G165)

Xcode 13.0 (19234) (Build 13A233)

Timestamp: 2021-10-07T12:45:35+02:00

I had the same issue, I just created a new Project with the sample Hello world, deployed it to the device and it worked. I then deployed my desired app and it started working.

I hope this helps.

I had this problem and finally find a solution: I changed the Bundle Identifier in Targets / Signing & Capabilities, and deployed the app.

  • Quitting Xcode and opening again.
  • Restarting the phone.
  • Cleaning the project from Project menu and selecting Clean Build Folder

Once I did all these things, it fixed the issue for me. Sometimes it's the simple things.

I encountered the same issue. Working solution for me was go to (on iPhone) : Settings > Developer > Clear Trusted Computers

After clearing trusted computers and reconnecting iPhone to Xcode, it works correctly.

Just got this error in 2022. To solve that, just go to Settings -> General -> VPN & Device Management and "trust" yourself as developer.

It didn't work for me. Please help

Please check if you have Internet connection on your device. My connection was off - it was the reason why Apple couldn't check my developer's profile.

I had to upgrade to Xcode-beta.

Invalid code signature problem with Xcode12
 
 
Q