ionic-team / ionic-team/native-run
Cannot read property 'udid' of undefined
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
**Version:**
0.2.8
**Description:**
Hello
native-run doesn't see the emulator or dont create a new one. As I see DeviceList is empty. What's the problem? I am trying to solve for 2 days.
**Command Output:**
```
native-run ios --app platforms/ios/build/emulator/MyBookie.app --forward 8100:8100 --verbose
[native-run] 2019-08-14T10:22:13.062Z client:usbmuxd connectUsbmuxdSocket
[native-run] 2019-08-14T10:22:13.070Z client:usbmuxd getDevices
[native-run] 2019-08-14T10:22:13.076Z protocol:usbmux socket write: {"messageType":"ListDevices"}
[native-run] 2019-08-14T10:22:13.789Z protocol:usbmux Response: {"DeviceList":[]}
[native-run] 2019-08-14T10:22:13.791Z native-run Caught fatal error: TypeError: Cannot read property 'udid' of undefined
[native-run] at Object.run (/usr/local/lib/node_modules/native-run/dist/ios/run.js:56:80)
[native-run] at process._tickCallback (internal/process/next_tick.js:68:7)
[native-run] TypeError: Cannot read property 'udid' of undefined
[native-run] at Object.run (/usr/local/lib/node_modules/native-run/dist/ios/run.js:56:80)
[native-run] at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess native-run.
native-run ios --app platforms/ios/build/emulator/MyBookie.app --forward 8100:81... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 5 functions +0ms
ionic:lib:hooks Looking for ionic:serve:after npm script. +55s
ionic:utils-process processExit: exiting (exit code: 1) +60ms
```
**Environment Info:**
```
Ionic:
Ionic CLI : 5.2.4 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.7.1
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0
Capacitor:
Capacitor CLI : 1.1.1
@capacitor/core : 1.1.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 10 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.8
System:
ios-sim : 8.0.1
NodeJS : v10.16.2 (/usr/local/lib/node_modules/node/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.0 Build version 10A255
```
macOS version: 10.14.2
Xcode version: 10.0 (10A255)
Contributor guide
Assessment
This issue has not been assessed yet.