# Ionic capacitor run ios -l --external won't run (no error)

**URL:** <https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030>\
**Category:** Capacitor\
**Created:** [April 4, 2022, 1:22pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030 "2022-04-04T13:22:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![butaminas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/butaminas/32/138834_2.png) [@butaminas](https://forum.ionicframework.com/u/butaminas)\
**Post date:** [April 4, 2022, 1:22pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/1 "2022-04-04T13:22:42Z")

</div>

I’m having a weird issue with capacitor where when I try to run my app on an external device it doesn’t run.

The device I’m trying to run my app on is iPhone 12 / iOS 15.4.1 (been doing this for a long time without an issue)

I get no error and the last lines in console are:

> [capacitor] ✔ Running xcodebuild in 14.71s  
> [capacitor] ✔ Deploying Foodie Syndicate.app to device-id-here in 854.58ms
> 
> [INFO] App deployed to device!
> 
> ```
> Development server will continue running until manually stopped.
>    
> Use Ctrl+C to quit this process
> 
> ```

If I run it on a simulator then it does work correctly and if I run it directly from Xcode to the physical device it will also work but not when I try to run it on a physical device using `ionic capacitor run ios -l --external`.

I’ve checked the device ID and it is correct, what could be the problem here?

My `ionic info`:

> Ionic:
> 
> Ionic CLI : 6.19.0 (/Users/mindaugas/.config/yarn/global/node\_modules/@ionic/cli)  
> Ionic Framework : @ionic/vue 6.0.14
> 
> Capacitor:
> 
> Capacitor CLI : 3.4.3  
> @capacitor/android : 3.4.3  
> @capacitor/core : 3.4.3  
> @capacitor/ios : 3.4.3
> 
> Utility:
> 
> cordova-res : not installed globally  
> native-run : 1.5.0
> 
> System:
> 
> NodeJS : v17.7.2 (/Users/mindaugas/.nodenv/versions/17.7.2/bin/node)  
> npm : 8.5.2  
> OS : macOS Monterey

---

<div class="post-metadata">

**Author:** ![thomasvidas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/thomasvidas/32/137760_2.png) [@thomasvidas](https://forum.ionicframework.com/u/thomasvidas)\
**Post date:** [April 4, 2022, 2:43pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/2 "2022-04-04T14:43:22Z")

</div>

Do you get any errors if you run [native-run](https://github.com/ionic-team/native-run) directly?

---

<div class="post-metadata">

**Author:** ![butaminas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/butaminas/32/138834_2.png) [@butaminas](https://forum.ionicframework.com/u/butaminas)\
**Post date:** [April 4, 2022, 3:02pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/3 "2022-04-04T15:02:54Z")

</div>

No. The command is finished after ~1sec. and that’s it.

---

<div class="post-metadata">

**Author:** ![butaminas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/butaminas/32/138834_2.png) [@butaminas](https://forum.ionicframework.com/u/butaminas)\
**Post date:** [April 4, 2022, 4:58pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/4 "2022-04-04T16:58:38Z")

</div>

Figured it out! It was NodeJS v17.7.2. I downgraded to v16.14.2 and now it is deploying correctly.

---

<div class="post-metadata">

**Author:** ![calDion](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@calDion](https://forum.ionicframework.com/u/calDion)\
**Post date:** [September 30, 2022, 9:28pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/5 "2022-09-30T21:28:05Z")

</div>

> [@butaminas](#):
>
> ionic capacitor run ios -l --external

I have a similar problem, where I get no errors. I tried to downgrade and upgrade node, but that didn’t solve the problem.  
I also tried uninstalling and installing the ionic/cli again. It still doesn’t work.  
My last line with verbose is:

> ionic:lib:integrations:capacitor Getting config with Capacitor CLI: [‘config’, ‘–json’] +0ms

Did ionic capacitor run ios work for you? Because that also doesn’t work right now.

---

<div class="post-metadata">

**Author:** ![calDion](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@calDion](https://forum.ionicframework.com/u/calDion)\
**Post date:** [September 30, 2022, 10:26pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/6 "2022-09-30T22:26:09Z")

</div>

I found the error. For me it was that @ionic/cli version 6.20.2 livereload didn’t work with capacitor version 4.3.0. So when I downgraded to @ionic/cli 6.20.1 it worked again.

You also have to have node version v16.14.2. With node version v17.7.2 or v18.10.0, the error also occurs with ionic/cli version 6.20.1

Currently an issue being tracked on github: [Capacitor run android not working in 6.20.2 · Issue #4912 · ionic-team/ionic-cli · GitHub](https://github.com/ionic-team/ionic-cli/issues/4912)

---

<div class="post-metadata">

**Author:** ![MozMike](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@MozMike](https://forum.ionicframework.com/u/MozMike)\
**Post date:** [October 3, 2022, 4:56pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/7 "2022-10-03T16:56:50Z")

</div>

Be sure to provide an update for us, @butaminas

---

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [December 15, 2022, 11:03am UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/8 "2022-12-15T11:03:53Z")

</div>

I’ve been having this exact same issue the last couple of weeks and the only solution for me was to do what @calDion suggested - go back down to ionic 6.20.1 and node 16.14.2. This is a shame because I like to be on the same version of node as we use on Appflow for our release builds so it would be good to see this fixed.

---

<div class="post-metadata">

**Author:** ![julio-ionic](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@julio-ionic](https://forum.ionicframework.com/u/julio-ionic)\
**Post date:** [December 15, 2022, 1:08pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/9 "2022-12-15T13:08:22Z")

</div>

Ionic CLI 6.20.2 had a bug that prevented `ionic cap` from working, that got fixed on 6.20.3, so you shouldn’t need to downgrade to 6.20.1 anymore.

Related to the node 18 issues, it’s better if you report the issue on [Issues · ionic-team/ionic-cli · GitHub](https://github.com/ionic-team/ionic-cli/issues) unless the problem is this one [bug: -l --external Fails with Node 18 · Issue #4839 · ionic-team/ionic-cli · GitHub](https://github.com/ionic-team/ionic-cli/issues/4839)

---

<div class="post-metadata">

**Author:** ![zacksmash](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zacksmash/32/143907_2.png) [@zacksmash](https://forum.ionicframework.com/u/zacksmash)\
**Post date:** [March 10, 2023, 6:17pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/10 "2023-03-10T18:17:24Z")

</div>

I was having an issue with this and it seems like it stemmed from a linting warning – not even an error, just a warning about a non-used import. Make sure your linter is free from… lint!

---

<div class="post-metadata">

**Author:** ![asifaly0](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@asifaly0](https://forum.ionicframework.com/u/asifaly0)\
**Post date:** [May 7, 2023, 3:03pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/11 "2023-05-07T15:03:20Z")

</div>

You saved me man!, was going mad over this. Thank you!

---

<div class="post-metadata">

**Author:** ![behicsakar](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@behicsakar](https://forum.ionicframework.com/u/behicsakar)\
**Post date:** [October 28, 2023, 10:19pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/12 "2023-10-28T22:19:15Z")

</div>

> [@butaminas](#):
>
> I downgraded to v16.14.2 and now it is deploying correctly.

I upgraded capacitor-cli, and cococapods but it didnt work for me.

I solved it with

0- Before i start this procedure, i upgraded version of `cocoapods` from `1.13.x` to `1.14.2` by using the following command, homebrew `brew upgrade cocoapods`

1- Delete `DerivedData` folder and `capacitor-cordova-ios-plugins` if exists  
 ![Screenshot 2023-10-29 at 01 10 27](https://global.discourse-cdn.com/ionicframework/original/3X/a/f/afe8ef35755cc06e75dd98c33d209ec58a3f732a.png)

2- Go to `ios/App` and delete `Pods` folder  
 ![Screenshot 2023-10-29 at 01 11 56](https://global.discourse-cdn.com/ionicframework/original/3X/8/d/8d1cf513f8294e77dce3a2fb4122ad887897b577.png)

3- run `pod install` inside of `ios/App`

4- go to root folder which your project is located and run `ionic cap sync`

5- Better first test directly run this project in a simulator `ionic cap run ios` and choose a device.

6- If everyyhing works fine then try to run `ionic capacitor run ios -l --external`

---

<div class="post-metadata">

**Author:** ![StringSound](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@StringSound](https://forum.ionicframework.com/u/StringSound)\
**Post date:** [January 3, 2024, 10:38pm UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/13 "2024-01-03T22:38:13Z")

</div>

Same issue, with simulator works fine. Haven’t tried yet, but next thing I’ll do is make sure both devices are on the same network, turn off any VPN connection.

---

<div class="post-metadata">

**Author:** ![calDion](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@calDion](https://forum.ionicframework.com/u/calDion)\
**Post date:** [September 16, 2024, 10:18am UTC](https://forum.ionicframework.com/t/ionic-capacitor-run-ios-l-external-wont-run-no-error/222030/14 "2024-09-16T10:18:50Z")

</div>

If you are using nvm to install node, don’t forget to install also the @ionic/cli globally for the newly installed node version.  
Eg.

```auto
nvm install v20.17.0
nvm alias default v20.17.0
npm install -g @ionic/cli

```

You can check if you have @ionic/cli globally installed with “npm ls -g”.
