nativescript-cli
nativescript-cli copied to clipboard
Devtools unstable on iOS
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 7.0.11 (tried
@next
as well) - Cross-platform modules:
7.0.13
- iOS Runtime:
7.0.4
(tried7.0.3
and7.0.1
as well) - XCode Version:
12.1
- Simulator iOS Version:
14.1
Describe the bug Chrome DevTools do not show any network connection or elements. Safari's inspector does not even show console.
To Reproduce
-
ns create devtools-test --ng --blank
- Add a http call to
app.component.ts
via Angular'sHttpClient
or NativeScript'sHttp
. -
ns debug ios
(--inspector
if testing inspector) - Open DevTools link provided by cli (or switch to inspector)
Expected behavior
Expect to see http calls on the network tab, layout on elements tab, and console output on console tab.
Additional context On a real project, application crashes when DevTools are open opened. Once this issue is reproduced for a minimal project, I can provide more information regarding that if the issue persists.
- Reinstalled xcode CLI tools
- Reinstalled Nativescript
- Reinstalled Ruby and updated gems
Now I can see Console and Sources in DevTools, network and elements are still missing...But apparently it works for some people just fine, so possibly an environment issue. If anyone has a workaround or ideas what might be at fault please let me know.