webpack / webpack-dev-server

Serves a webpack app. Updates the browser on changes. Documentation https://webpack.js.org/configuration/dev-server/.
MIT License
7.8k stars 1.43k forks source link

Only showing the same udid after using `idb list-target` #2285

Closed MarkZhongsh closed 5 years ago

MarkZhongsh commented 5 years ago

Only showing the same udid after using idb list-target, both I connected test device and disconnected it by usb, and there is no simulator running on my computer. This is the output:

iPhone | 69694e37d099861c99f2b04d340b8e2d4cbb4e25 | Booted | device | iOS 12.1.4 | arm64 | No Companion Connected
iPhone | 69694e37d099861c99f2b04d340b8e2d4cbb4e25 | booted | device | iOS 12.1.4 | arm64 | :0

And I had tried runing idb_companion --udid 69694e37d099861c99f2b04d340b8e2d4cbb4e25 but it told me that could not be found, there is the log:

2019-10-16 19:52:53.000+0800 IDB Companion Built at Oct 16 2019 11:21:05
2019-10-16 19:52:53.002+0800 Invoked with args=[/usr/local/bin/idb_companion, --udid, 69694e37d099861c99f2b04d340b8e2d4cbb4e25] env={TERM_SESSION_ID => 898EEDCE-6CBE-41DD-8D6E-90C153F47870, SSH_AUTH_SOCK => /private/tmp/com.apple.launchd.WxeRMYpjEK/Listeners, __CF_USER_TEXT_ENCODING => 0x1F5:0x19:0x34, OLDPWD => /Users/mark/Desktop/shared/OTA_v5, Apple_PubSub_Socket_Render => /private/tmp/com.apple.launchd.UYw5yiHfS8/Render, XPC_FLAGS => 0x0, LANG => zh_CN.UTF-8, PYENV_SHELL => bash, PWD => /Users/mark/workspace/被拒工程/未提审, CLICOLOR => 1, SHELL => /bin/bash, SECURITYSESSIONID => 186a7, SVN_EDITOR => /usr/local/bin/vim, MYSQLROOT => /usr/local/opt/mysql@5.7, PATH => /Users/mark/.pyenv/shims:/Users/mark/.pyenv/shims:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Users/mark/Desktop/workspace/android/android-sdk-macosx/platform-tools:/Users/mark/Desktop/workspace/android/android-sdk-macosx/build-tools/28.0.0:/Users/mark/Desktop/workspace/android/script:/Users/mark/Desktop/workspace/android/android-sdk-macosx/tools:/usr/local/opt/go@1.11/bin:/usr/local/opt/mysql@5.7/bin, TERM_PROGRAM => Apple_Terminal, TERM_PROGRAM_VERSION => 421.1, SHLVL => 1, PYENV_VERSION => 3.7.4, TERM => xterm-256color, LSCOLORS => gxfxaxdxcxegedabagacad, USER => mark, TMPDIR => /var/folders/v9/99ddyg713w18jw3zzcpy5fwc0000gn/T/, XPC_SERVICE_NAME => 0, HOME => /Users/mark, GOROOT => /usr/local/opt/go@1.11, ANDOIRD_HOME => /Users/mark/Desktop/workspace/android, THEOS => /opt/theos, LOGNAME => mark, _ => /usr/local/bin/idb_companion}
2019-10-16 19:52:53.006+0800 [framework_loader] MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework
2019-10-16 19:52:53.012+0800 [framework_loader] MobileDevice: Successfully loaded
2019-10-16 19:52:53.012+0800 [framework_loader] Loaded All Private Frameworks [MobileDevice]
Oct 16 19:52:53  idb_companion[42611] <Notice>: _SubscribeForMuxNotifications (thread 0x11ca905c0): returned 0x0.
Oct 16 19:52:53  idb_companion[42611] <Notice>: AMDeviceNotificationSubscribeWithOptions (thread 0x11ca905c0): returned 0x0.
2019-10-16 19:52:53.017+0800 New Error Built ==> Error Domain=com.facebook.FBControlCore Code=0 "Device with udid 69694e37d099861c99f2b04d340b8e2d4cbb4e25 could not be found" UserInfo={NSLocalizedDescription=Device with udid 69694e37d099861c99f2b04d340b8e2d4cbb4e25 could not be found}
2019-10-16 19:52:53.018+0800 Device with udid 69694e37d099861c99f2b04d340b8e2d4cbb4e25 could not be found

Could anyone tell me what happen? Thanks for help.

alexander-akait commented 5 years ago

How it is related to webpack-dev-server? I don't know what it is mean

MarkZhongsh commented 5 years ago

It means that whenever I run the command idb list-targets, it will only show

iPhone | 69694e37d099861c99f2b04d340b8e2d4cbb4e25 | Booted | device | iOS 12.1.4 | arm64 | No Companion Connected
iPhone | 69694e37d099861c99f2b04d340b8e2d4cbb4e25 | booted | device | iOS 12.1.4 | arm64 | :0

udid never changes.

alexander-akait commented 5 years ago

@MarkZhongsh i don't know what is idb list-targets we don't use this in our code