react-native: React native IOS App Crash on Real Device

Description

React Native IOS app is crashing on real device but simulator is working fine. I am using Xcode 15.

Below is the error:

Could not attach to pid : “3523” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.) User Info: { DVTErrorCreationDateKey = “2023-11-23 13:32:56 +0000”; DVTRadarComponentKey = 855031; IDERunOperationFailingWorker = DBGLLDBLauncher; RawUnderlyingErrorMessage = “attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)”; }

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { “device_isCoreDevice” = 1; “device_model” = “iPhone16,1”; “device_osBuild” = “17.1.1 (21B91)”; “device_platform” = “com.apple.platform.iphoneos”; “dvt_coredevice_version” = “348.1”; “dvt_mobiledevice_version” = “1643.40.14”; “launchSession_schemeCommand” = Run; “launchSession_state” = 2; “launchSession_targetArch” = arm64; “operation_duration_ms” = 36418; “operation_errorCode” = 3; “operation_errorDomain” = IDEDebugSessionErrorDomain; “operation_errorWorker” = DBGLLDBLauncher; “operation_name” = IDERunOperationWorkerGroup; “param_debugger_attachToExtensions” = 0; “param_debugger_attachToXPC” = 1; “param_debugger_type” = 3; “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_checker_tpc_enable” = 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_structuredConsoleMode” = 1; “param_testing_launchedForTesting” = 0; “param_testing_suppressSimulatorApp” = 0; “param_testing_usingCLI” = 0; “sdk_canonicalName” = “iphoneos17.0”; “sdk_osVersion” = “17.0”; “sdk_variant” = iphoneos; }

System Information

macOS Version 14.1.1 (Build 23B81) Xcode 15.0.1 (22266) (Build 15A507) Timestamp: 2023-11-23T16:32:56+03:00

React Native Version

0.71.8

Output of npx react-native info

System: OS: macOS 14.1.1 CPU: (8) arm64 Apple M1 Pro Memory: 130.11 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 6.14.4 - /opt/homebrew/bin/npm Watchman: 2023.06.12.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29, 30, 31, 32, 33 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0 System Images: android-31 | Google APIs ARM 64 v8a, android-32 | Google APIs ARM 64 v8a, android-34 | Google APIs ARM 64 v8a, android-Tiramisu | Google Play ARM 64 v8a Android NDK: 24.0.8215888 IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.8 => 0.71.8 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Just run the app in debug mode.

Snack, screenshot, or link to a repository

Screenshot 2023-11-23 at 4 40 52 PM

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 1
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Hi @nandowastaken !

Issue has been resolved. After a lot of search i found that trustkit and reactotron versions are conflicting. I updated and project is working fine now.