Skip to content
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

Xcode 14.3 compatibility #4071

Closed
asafkorem opened this issue May 22, 2023 · 5 comments · Fixed by #4086
Closed

Xcode 14.3 compatibility #4071

asafkorem opened this issue May 22, 2023 · 5 comments · Fixed by #4086

Comments

@asafkorem
Copy link
Contributor

asafkorem commented May 22, 2023

When attempting to run Detox tests with Xcode 14.3, I have experienced several errors and failures. Requires investigation.

@RonaldvdH
Copy link

One of the errors i encounter is:
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown

Running with xcode 14.2 works fine.

@asafkorem
Copy link
Contributor Author

Released as v20.9.1.

@RonaldvdH It's hard to tell what the problem you're facing from this error. Can you please check the latest version?

@Titozzz
Copy link

Titozzz commented Jun 7, 2023

Same issue here on 20.9.1 so this probably could be reopened cc @asafkorem

Adding a bit more logs if that helps:

10:34:48.514 detox[19946] i 
10:34:48.514 detox[19946] i An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Unable to shutdown device in current state: Shutdown

FAIL public/user_login.e2e.ts
  ● Test suite failed to run

    ChildProcessError: Command failed: /usr/bin/xcrun simctl shutdown 9EA182B7-220A-4E4C-B351-7EDEA1D82411
    An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
    Unable to shutdown device in current state: Shutdown
     `/usr/bin/xcrun simctl shutdown 9EA182B7-220A-4E4C-B351-7EDEA1D82411` (exited with error code 149)

      at callback (../../../node_modules/child-process-promise/lib/index.js:33:27)

@asafkorem
Copy link
Contributor Author

asafkorem commented Jun 8, 2023

@Titozzz I suspect this error is unrelated to Detox itself but more likely to Xcode's simctl.(https://github.com/wix/AppleSimulatorUtils).

This might help, close the Simulator app and then remove Xcode's cache:
About this Mac > Storage > Manage > Developer -> Delete Project Build Data and Indexes
image

@Titozzz
Copy link

Titozzz commented Jun 8, 2023

I've deleted said caches and will let you know how it goes @asafkorem . Note that this only happens on our remote Mac CI and not locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants