Open Vazid005 opened 2 days ago
Works for me with iOS 18 and Xcode 16. The issue might be related specifically to the React Native version rather than the iOS version (Detox doesn't support 0.74 yet).
@Vazid005, if you can create a minimal reproduction project that I can work with, it will both help me and increase the likelihood that I'll look into your issue. The error points to _setupRNSupport
, which is related to Detox’s integration with React Native sync resources, this raises the possibility that it will be solved with RN .74 support from Detox.
Works for me with iOS 18 and Xcode 16. The issue might be related specifically to the React Native version rather than the iOS version (Detox doesn't support 0.74 yet).
@Vazid005, if you can create a minimal reproduction project that I can work with, it will both help me and increase the likelihood that I'll look into your issue. The error points to
_setupRNSupport
, which is related to Detox’s integration with React Native sync resources, this raises the possibility that it will be solved with RN .74 support from Detox. Sure @asafkorem Can you please mention what all things you would require as part of reproduction project as we have a separate framework and we download the build from bitrise and run it in our detox framework
What happened?
While Trying to Launch the app with detox the app is crashing only happens with the Xcode 16 build
What was the expected behaviour?
APP should be launched and perform the desired steps
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.26.2 React Native version: 0.74.5 Has Fabric (React Native's new rendering system) enabled: no Node version: 21.6.0 Device model: Iphone 16 iOS version: 18 macOS version: 15.0.1 Xcode version: 16.0 Test-runner (select one): jest
Detox logs
Detox logs
``` 11:23:30.506 detox[77644] B artifacts-manager onTerminateApp 11:23:30.506 detox[77644] E artifacts-manager onTerminateApp 11:23:30.506 detox[77644] E device terminateApp 11:23:30.506 detox[77644] E device selectApp 11:23:30.506 detox[77644] B device installApp 11:23:30.507 detox[77644] i child-process:EXEC_CMD Installing app... 11:23:31.327 detox[77644] i child-process:EXEC_SUCCESS App installed 11:23:31.327 detox[77644] E device installApp 11:23:31.328 detox[77644] B device selectApp 11:23:31.328 detox[77644] B device terminateApp 11:23:31.328 detox[77644] B artifacts-manager onBeforeTerminateApp 11:23:31.328 detox[77644] E artifacts-manager onBeforeTerminateApp 11:23:31.328 detox[77644] i child-process:EXEC_CMD Terminating app... 11:23:32.483 detox[77644] i child-process:EXEC_TRY_FAIL Failed to terminate app: App not found 11:23:32.610 detox[77644] i child-process:EXEC_FAIL Termination command failed 11:23:32.611 detox[77644] B artifacts-manager onTerminateApp 11:23:32.611 detox[77644] E artifacts-manager onTerminateApp 11:23:32.611 detox[77644] E device terminateApp 11:23:32.611 detox[77644] E device selectApp 11:23:32.611 detox[77644] E lifecycle set up environment 11:23:33.185 detox[77644] i lifecycle Test assigned to device 11:23:33.185 detox[77644] B lifecycle run the tests 11:23:33.186 detox[77644] B artifacts-manager onRunDescribeStart 11:23:33.186 detox[77644] E artifacts-manager onRunDescribeStart 11:23:33.186 detox[77644] B lifecycle [Test]: Login screen 11:23:33.186 detox[77644] B artifacts-manager onRunDescribeStart 11:23:33.186 detox[77644] E artifacts-manager onRunDescribeStart 11:23:33.187 detox[77644] B lifecycle Login 11:23:33.187 detox[77644] i lifecycle [Test]: Login screen: Login 11:23:33.188 detox[77644] B artifacts-manager onTestStart 11:23:33.188 detox[77644] i artifact:ARTIFACT_START starting SimulatorVideoRecording 11:23:33.189 detox[77644] i artifact:ARTIFACT_START starting SimulatorInstrumentsRecording 11:23:33.189 detox[77644] E artifacts-manager onTestStart 11:23:33.189 detox[77644] B lifecycle beforeEach 11:23:33.190 detox[77644] E lifecycle beforeEach 11:23:33.190 detox[77644] B lifecycle test_fn 11:23:33.191 detox[77644] i user Creating test user 11:23:33.589 detox[77644] i child-process:SPAWN_STDERR Recording started 11:23:35.890 detox[77644] i user GraphQL request success: User created 11:23:36.559 detox[77644] i user GraphQL request success: User management details retrieved 11:23:36.560 detox[77644] i user User found. Proceeding with update. 11:23:36.560 detox[77644] i user User details: [REDACTED] 11:23:36.560 detox[77644] i user Executing update for Auth0 User ID: [REDACTED] 11:23:37.241 detox[77644] i user Update successful 11:23:37.242 detox[77644] i user User data updated 11:23:37.345 detox[77644] i user disableAutoFillPopup is done. 11:23:37.345 detox[77644] i user Attempting app launch... 11:23:37.347 detox[77644] B device launchApp 11:23:37.348 detox[77644] B artifacts-manager onBeforeLaunchApp 11:23:37.348 detox[77644] E artifacts-manager onBeforeLaunchApp 11:23:37.349 detox[77644] i child-process:EXEC_CMD Launching app... 11:23:37.610 detox[77644] i child-process:EXEC_SUCCESS App launched 11:23:37.893 detox[77644] i device App launched. To watch simulator logs, run the appropriate command. 11:23:37.893 detox[77644] B artifacts-manager onLaunchApp 11:23:37.893 detox[77644] i artifact:ARTIFACT_START starting SimulatorInstrumentsRecording 11:23:37.893 detox[77644] i artifact:ARTIFACT_STOP stopping SimulatorInstrumentsRecording 11:23:37.894 detox[77644] E artifacts-manager onLaunchApp 11:24:37.349 detox[77644] i user Error during app launch ```Device logs
Device logs
``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Incident Identifier: [REDACTED] CrashReporter Key: [REDACTED] Hardware Model: MacBookPro18,3 Process: PHX Development [PID] Path: /Users/[USERNAME]/Library/Developer/CoreSimulator/Devices/[DEVICE_ID]/data/Containers/Bundle/Application/[APP_ID]/PHX_local.app/PHX Development Identifier: [REDACTED] Version: [REDACTED] Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd_sim [PID] Coalition: com.apple.CoreSimulator.SimDevice.[DEVICE_ID] [ID] Responsible Process: SimulatorTrampoline [PID] Date/Time: 2024-10-28 11:02:55.5752 +0530 Launch Time: 2024-10-28 11:02:53.5989 +0530 OS Version: macOS 15.0.1 (24A348) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4297359360 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100248000-1013d8000 [ 17.6M] r-x/r-x SM=COW /Users/[USERNAME]/Library/Developer/CoreSimulator/Devices/[DEVICE_ID]/data/Containers/Bundle/Application/[APP_ID]/PHX_local.app/PHX Development Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [PID] Triggered by Thread: 0 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 0x0 ??? 1 DetoxSync 0x101ec58dc _setupRNSupport + 224 2 dyld_sim 0x101bcc478 invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 216 3 dyld_sim 0x101bedb18 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 164 4 dyld_sim 0x101be57e8 invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 488 5 dyld_sim 0x101be44bc dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 284 6 dyld_sim 0x101be47c8 dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 164 7 dyld_sim 0x101be6fe4 dyld3::MachOFile::forEachInitializerPointerSection(Diagnostics&, void (unsigned int, unsigned int, bool&) block_pointer) const + 132 8 dyld_sim 0x101bed838 dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 324 9 dyld_sim 0x101bcc334 dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 148 10 dyld_sim 0x101bd1ef4 dyld4::JustInTimeLoader::runInitializers(dyld4::RuntimeState&) const + 32 11 dyld_sim 0x101bcc698 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::ArrayMore data, please!
No response