Post

Replies

Boosts

Views

Activity

Reply to Error of invalid code signature
Launch details: Details Could not launch “KeyChainTest” Domain: IDELaunchErrorDomain Code: 20 Recovery Suggestion: The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. User Info: { DVTErrorCreationDateKey = "2022-07-28 18:29:35 +0000"; DVTRadarComponentKey = 968756; IDERunOperationFailingWorker = IDELaunchServicesLauncher; } -- The operation couldn’t be completed. Launch failed. Domain: RBSRequestErrorDomain Code: 5 Failure Reason: Launch failed. -- Launchd job spawn failed Domain: NSPOSIXErrorDomain Code: 153 -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "MacBookPro18,2"; "device_osBuild" = "12.5 (21G72)"; "device_platform" = "com.apple.platform.macosx"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 242; "operation_errorCode" = 20; "operation_errorDomain" = IDELaunchErrorDomain; "operation_errorWorker" = IDELaunchServicesLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.macosx"; "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" = 99; "param_launcher_substyle" = 8192; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_runnable_swiftVersion" = "5.6.1"; "param_runnable_type" = 2; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "macosx12.3"; "sdk_osVersion" = "12.3"; "sdk_variant" = iosmac; } -- System Information macOS Version 12.5 (Build 21G72) Xcode 13.4.1 (20504) (Build 13F100) Timestamp: 2022-07-28T11:29:35-07:00
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’22
Reply to Error of invalid code signature
Crash logs: ----------- Full Report ----------- {"app_name":"KeyChainTest","timestamp":"2022-07-28 11:40:02.00 -0700","app_version":"1.0","slice_uuid":"ab771f13-6d1e-3075-b705-4a1a967235d1","build_version":"1","platform":0,"bundleID":"com.everydayodyssey.KeyChainTest","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.5 (21G72)","incident_id":"954F1CC1-2D69-46EC-9A5C-B359C663D6DD","name":"KeyChainTest"} { "uptime" : 74000, "procLaunch" : "2022-07-28 11:40:02.6131 -0700", "procRole" : "Background", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro18,2", "procStartAbsTime" : 1790123755116, "coalitionID" : 7386, "osVersion" : { "train" : "macOS 12.5", "build" : "21G72", "releaseType" : "User" }, "captureTime" : "2022-07-28 11:40:02.7225 -0700", "incident" : "954F1CC1-2D69-46EC-9A5C-B359C663D6DD", "bug_type" : "309", "pid" : 71074, "procExitAbsTime" : 1790126343221, "translated" : true, "cpuType" : "X86-64", "procName" : "KeyChainTest", "procPath" : "\/Users\/USER\/Library\/Developer\/Xcode\/DerivedData\/KeyChainTest-giwqahaknpumocboniibijnsquac\/Build\/Products\/Debug-maccatalyst\/KeyChainTest.app\/Contents\/MacOS\/KeyChainTest", "bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"com.everydayodyssey.KeyChainTest"}, "storeInfo" : {"deviceIdentifierForVendor":"26D62424-5339-58DD-81C8-201467225125","thirdParty":true}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "com.everydayodyssey.KeyChainTest", "crashReporterKey" : "97D45FC5-2CF9-17E0-ED77-77DF6E673BA6", "wakeTime" : 65678, "sleepWakeUUID" : "059035B1-C1E8-42A1-8114-C2447C15E9C1", "sip" : "enabled", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"}, "termination" : {"namespace":"CODESIGNING","flags":66,"code":1}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":8,"thread_set_state":0,"task_for_pid":24},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":732157,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":12982334384},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":140703124187788,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":14988,"imageIndex":0}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 140703124172800, "size" : 196608, "uuid" : "ef33add1-6b70-3cc9-8bbc-c8544b609d2b", "name" : "" } ], "vmSummary" : "ReadOnly portion of Libraries: Total=840K resident=0K(0%) swapped_out_or_unallocated=840K(100%)\nWritable regions: Total=21.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=21.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 13.3M 5 \n__DATA 80K 3 \n__DATA_CONST 80K 1 \n__LINKEDIT 240K 4 \n__TEXT 624K 2 \nmapped file 6.1G 33 \n=========== ======= ======= \nTOTAL 6.2G 50 \n", "legacyInfo" : { "threadTriggered" : { } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "607844aa04477260f58a8077", "factorPackIds" : { "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a" }, "deploymentId" : 240000066 }, { "rolloutId" : "60da5e84ab0ca017dace9abf", "factorPackIds" : { }, "deploymentId" : 240000008 }, { "rolloutId" : "602ad4dac86151000cf27e46", "factorPackIds" : { "SIRI_DICTATION_ASSETS" : "61a69938b1c7c7620ce6e407" }, "deploymentId" : 240000305 }, { "rolloutId" : "60356660bbe37970735c5624", "factorPackIds" : { }, "deploymentId" : 240000027 }, { "rolloutId" : "601d9415f79519000ccd4b69", "factorPackIds" : { "SIRI_TEXT_TO_SPEECH" : "61ef3bd47303d250981c8529" }, "deploymentId" : 240000416 }, { "rolloutId" : "5fb4245a1bbfe8005e33a1e1", "factorPackIds" : { }, "deploymentId" : 240000015 }, { "rolloutId" : "60186475825c62000ccf5450", "factorPackIds" : { "SIRI_VALUE_INFERENCE_CONTACT_RESOLUTION" : "62bdc4218fe09c1632d841e9" }, "deploymentId" : 240000023 }, { "rolloutId" : "5ffde50ce2aacd000d47a95f", "factorPackIds" : { }, "deploymentId" : 240000171 }, { "rolloutId" : "5fc94383418129005b4e9ae0", "factorPackIds" : { }, "deploymentId" : 240000413 } ], "experiments" : [ ] }, "reportNotes" : [ "dyld_process_snapshot_get_shared_cache failed" ] }
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’22
Reply to Error of invalid code signature
Hi, I'm facing similar, if not the exact same issue with my app. In my case it seems to happen as soon as I try to add the keychain sharing entitlement to the project. I get a successful build but a crash on launch. This only happens when trying to build and run as a catalyst app for Mac. Building and running for iOS works. Also my teammates with Intel based Macs are unaffected and able to build/run for Catalyst. To try and isolate things I've created a brand new test app. Environment: MacBook Pro M1 Max macOS 12.5 Xcode 13.4.1 Apple developer member and team Project Setup: Brand new project (File > New > Project > App) Team set to my company, signing cert set to me Automatically manage signing checked (Xcode managed profile) Mac Catalyst Checked (Target > General > Mac Catalyst Checked > Scale Interface to Match iPad) Build Target > My Mac (Catalyst) If I build and run from Xcode at this point everything works fine- the app builds and launches as a catalyst app on my Mac. Then I try and add the keychain sharing entitlement: Target > Signing & Capabilities > Add Keychain Sharing > Add Keychain Groups > set to the bundle identifier At this point if I try and build & run the app for catalyst (Target > My Mac (Catalyst)) it builds properly but fails to launch. I get the "Build Successful" message then a dialog that says " could not launch, the launcher has returned an error" (see the logs below). Interestingly, if I try and run for Rosetta (Target > My Mac (Rosetta)) I get the same failure to run, but it also crashes and throws a log into the console that looks very similar to the one above- specifically the code sign error and the x86-64 reference which is confusing as I'm on an M1 Mac. Any insight into this would be helpful as I'm not familiar with building Mac or catalyst apps. My experience thus far has been iOS only. Launch details and crash logs below.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’22