Debug iOS, the console outputs the following 'Could not debug. Error while executing command react-native run-ios --simulator --no-packager: Error while executing command react-native run- Ios --simulator --no-packagerDebug iOS successfullyOS: darwin x64
Adapter node: v8.9.3 x64
vscode-chrome-debug-core: 3.17.3
Could not debug. Error while executing command 'react-native run-ios --simulator --no-packager': Error while executing command 'react-native run-ios --simulator --no-packager'
[Error] Error: Error while executing command 'react-native run-ios --simulator --no-packager': Error while executing command 'react-native run-ios --simulator --no-packager'
Hi @VictDog and thanks for reaching us. Could you please run react-native run-ios --simulator --no-packager command in terminal and let us know if it works there? Also, please add "trace": "verbose to your debug configuration and start debugging again. Then copy-paste information from Debug Console and React-Native output channel here.
Thank you for your reply @ruslan-bikkinin. After running the response-native run-ios --simulator --no-packager command in the terminal, the simulator can run normally. I added "trace": "verbose" in the debug configuration, run the debug again, and found that the React-Native output channel is still:
[Error] Error: Error while executing command 'react-native run-ios --simulator -- No-packager':
Error while executing command 'react-native run-ios --simulator --no-packager'
and the debug console output like this:
OS: darwin x64
Adapter node: v8.9.3 x64
vscode-chrome-debug-core: 3.17.3
1:59:37 PM, 11/2/2018
From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"reactnative","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"zh-cn"})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":false}],"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsCompletionsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsRestartFrame":true,"supportsExceptionInfoRequest":true,"supportsDelayedStackTraceLoading":true,"supportsValueFormattingOptions":true,"supportsEvaluateForHovers":true,"supportsLoadedSourcesRequest":true,"supportsLogPoints":true,"supportsTerminateRequest":true}}
Handle launch request: {
"name": "Debug iOS",
"program": "/Users/victory/Desktop/xxx/xxx/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "launch",
"platform": "ios",
"sourceMaps": true,
"outDir": "/Users/victory/Desktop/xxx/xxx/.vscode/.react",
"trace": "verbose",
"__sessionId": "fbf4e22a-cbdc-45c8-83f8-1ce8517894dd"
}
Could not debug. Error while executing command 'react-native run-ios --simulator --no-packager': Error while executing command 'react-native run-ios --simulator --no-packager'
To client: {"seq":0,"type":"event","event":"terminated"}
From client: disconnect({"restart":false})
To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"FullSessionStatistics/SourceMaps/Overrides","data":{"aspNetClientAppFallbackCount":0}}}
To client: {"seq":0,"type":"response","request_seq":3,"command":"disconnect","success":true}
Looking forward to your reply, thank you
Hi @VictDog. I tried to run fresh React Native 0.56.0 app on Node.js version 8.12 and it's runs without such errors, so if it possible could you please try Node 8.12 LTS and let us know does it work for you?
@VictDog in addition to @SounD120's comment: do your application uses Expo SDK?
@VictDog just a friendly ping on this.
I am closing this due to inactivity. Please, feel free to open again if needed.
Hi, please Help, I had this error too.

How can I change the adapter node version ? It's ok when run this command in terminal with node v10.9.0.
@codingplayboy please try with simulator name
(settings.json) ->
"react-native.ios.runArguments.simulator": ["--simulator", "iPhone 6"]
For me, cd-ing into ./ios/ and running "pod install" after npm install-ing in the root app directory solved the problem.
Could not debug. Error while executing command 'react-native run-ios --simulator --no-packager --verbose': Error while executing command 'react-native run-ios --simulator --no-packager --verbose' (error code 101)
To client: {"seq":0,"type":"event","event":"terminated"}
From client: disconnect({"restart":false})
To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"FullSessionStatistics/SourceMaps/Overrides","data":{"aspNetClientAppFallbackCount":0}}}
To client: {"seq":0,"type":"response","request_seq":3,"command":"disconnect","success":true}
To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"debugStopped","data":{"reason":"Got disconnect request"}}}
[Error] Error: 执行命令 react-native run-ios --simulator --no-packager --verbose 时出错: 执行命令 react-native run-ios --simulator --no-packager --verbose 时出错 (error code 101)
resolved - xcode was in debug mode and by continue play debug in vscode works
This helped me:
npx react-native run-ios
resulted in
error Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues.
I had to select the Command line tools from the Locations tab in Xcode Preferences.
Most helpful comment
@codingplayboy please try with simulator name
(settings.json) ->
"react-native.ios.runArguments.simulator": ["--simulator", "iPhone 6"]