-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RN 72] iOS Simulator cannot terminate app #4148
Comments
I am also experiencing this issue after upgrading react native to 0.72.3 |
The same issue for RN 0.72.x
|
@TheMakerOleguch I faced the same issue in CI, but I somehow managed to workaround it by doubling the timeout time(in .detoxrc and jest.config). |
@Yassir4 tried with 24000ms setup timeout with no luck |
It sounds like there's an issue with RN 72 and Detox. We don't officially support this version yet, but we will soon. We will take this issue into consideration when upgrading Detox to comply with RN 72. |
A simple solution for CircleCI would be to add a In our case, we added Of course this is a temporary solution until the final fix comes with RN 0.72 support |
I'm seeing the same issue with RN 0.71.11 and Detox 19.5.7 |
Some of my colleagues are seeing this on "react-native": "0.72.4", "detox": "20.9.1", |
Hi all.
|
hi @kvramyasri7,
BTW in our version we added NO_FLIPPER config in |
Any official solutions to this issue? I'm using the RN 0.74.2 and Detox 20.9.1, after upgraded to Xcode15, this issue emerged, is there any avaliable version I can upgrade to? |
We'll try to check soon if there are indeed some issues with Xcode 15. UPD: Verified on Xcode 15.0.1 and iOS 17 simulator runtime that I cannot reproduce this issue. Tried specifically on RN72 – same result. |
Guys, we will only advance here if you create some exact reproduction repo. I understand you have an issue, but the conditions to reproduce this issue seem much more specific than originally described. There has to be something else in the equation. You seem to report different RN and Xcode versions, whereas I try both Xcode 14.3 and 15 and I don't see any issues with app termination. There has to be something more to it. I created a fresh RN app |
Hate to be a "me too" without anything substantive to add, but adding anyway just to reflect another user with the same problem. I can reproduce this reliably on my M1 Mac, v19.12.6 on 0.72.6. It fails within seconds of invocation. If/when I find anything interesting I'll be sure to update. |
Maybe M* platform issue then, hm? |
after updating XCode to latest 15.0.1/15A507. it works well without patch. I think it was xcode issue. |
@PetroPavlenko, thanks for the new info. Indeed, I started my investigation straight from the latest Xcode version. Maybe 15.0.0 indeed had an issue. 🤷 ❗❗❗ Can anyone else confirm (Xcode 15.0.1 might resolve the issue)? ❗❗❗ |
Hi @noomorph At the moment, the best I can share is I was already on 15.0.1 but I updated the detox library to 20.13.5. I now have to update all my configurations (was previously on v19), but just running it as a one-off with legacy configurations I did see deprecation warnings, which looks better than what was happening before... will add more after validating with correct configuration. EDIT - I also have success after updating to latest detox package and applying correct new configurations. I was already on 15.0.1 before I updated. Whether it is an M series issue is still not clear to me. I have other colleagues using the older 19.13.x version of detox with 15.0.1 and it works, but they are on Ventura while I am on Sonoma, so I am curious if there is an OS component involved here too. |
Also worked for me after upgrading to RN 0.72.7 and detox 20.13.5 |
react-native "0.71.14", encountered the same issue. Then upgraded detox from "^20.5.0" to "^20.13.5", the issue resolved. By the way, my xcode version is "15.0.1/15A507" |
i think this was due to https://forums.developer.apple.com/forums/thread/699615 and was fixed here #3518 already, so updating detox should do the trick. |
detox: 20.11.1 - has issue, unable to run |
The issue reported by @TheChrisOneil has been already addressed, it was resolved in version If any of the commenters continue to encounter errors after upgrading, please open a new issue. We are more than willing to assist further 🙏🏼 |
i'm running into the issue still with detox 20.19.1 when using xcode 15.2.0 RN 0.70.13 in circleci. |
Adding this before the yarn detox call worked for me: Context: Node 18 prefers IPv6 over IPv4 and I had just bumped from Node 16 to 18. |
You can probably solve this by doing this https://www.youtube.com/watch?v=9bDDWNoibIk |
What happened?
Added Detox to an existing react native project. It failed to complete the detox test command due
child-process:EXEC_FAIL "/usr/bin/xcrun simctl terminate B9AD5297-A76B-41D8-9C0F-435F87BBE3B3 org.reactjs.native.example.AwesomeProject" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate B9AD5297-A76B-41D8-9C0F-435F87BBE3B3 org.reactjs.native.example.AwesomeProject
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
After reading about others who had similar issues, I assumed it was my project configuration.
So I then used the sample in React Native and confirmed the AwesomeProject successfully deployed on the simulator. Then followed the instructions from the Detox site and successfully ran detox build; However, it fails in the same way as my original project.
MacBook Pro - M1 2020
macOS Ventura 13.4.1
Xcode 14.3.1
detox test -l verbose --cleanup --configuration ios.sim.debug
What was the expected behaviour?
The iOS simulator would terminate the app
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.11.1
React Native version: 0.72.3
Has Fabric (React Native's new rendering system) enabled: (yes/no) No
Node version: v20.5.0
Device model: iPhone 14
iOS version:
macOS version: Ventura 13.4.1. (M1 2020)
Xcode version: 14.3.1
Test-runner (select one): jest / other. Jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: