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

Show [ios-sim] Simulator already running error if simulator is already running when execute cordova run ios #1362

Open
EzioLi01 opened this issue Aug 10, 2023 · 4 comments

Comments

@EzioLi01
Copy link

EzioLi01 commented Aug 10, 2023

Hey experts,

Please check this if it's a bug or the expected behavior. Thanks!

  1. Create sample app and add iOS platform
  2. Open simulator
  3. Execute cordova run ios in this target simulator
  4. Build successfully
  5. Show error [ios-sim] Simulator already running
  6. App cannot auto-open in simulator
@cgimenez
Copy link

Hi ! Same problem here with latest cordova tooling, and no matter the ios simulator used

cordova emulate ios
[.. bunch of output]
** BUILD SUCCEEDED **

Deploying to simulator
No target specified for emulator. Deploying to "iPhone-SE-3rd-generation, 17.0" simulator.
[ios-sim] device.name: iPhone SE (3rd generation)

[ios-sim] device.runtime: iOS 17.0

[ios-sim] device.id: 5B995DC7-5578-438D-AB4E-EE4248886DBC

Error: Unhandled error. ('[ios-sim] Simulator already running.\n')

@Heshyo
Copy link

Heshyo commented Jan 23, 2024

Same. I have to first close the simulator before running that command, which is not convenient as the simulator takes quite some time to launch and be ready.

@chitgoks
Copy link

chitgoks commented Feb 13, 2024

Well ... no. Closing the simulator still does not work. The sample cordova app does not get deployed and the simulator does not open. I just started with cordova so im using the latest version and trying out creating a sample app.

What i did for now to deploy it is to open the .xcodeproj in xcode. if you encounter unable to unlock, just set read/write permissions to the whole folder.

@breautek
Copy link
Contributor

A potential workaround is to simply launch the "Simulator" application.

Apple has 2 applications, a simctl application which is responsible for booting and managing simulators, and a Simulator app which acts as the "frontend" GUI application into all booted simulators. So it sounds like the simctl is being used, but the Simulator app isn't being launched.

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

No branches or pull requests

5 participants