NativeScript: [Apple Silicon] NativeScript debugger was not able to get inspector socket port on device
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.2.0
- Cross-platform modules:
- Android Runtime: 7.0.1
- iOS Runtime: 7.2.0
- XCode Version: 12.4
- Plugin(s): RadCalendar (7.2.0), RadListView (9.1.0)
Describe the bug NativeScript debugger was not able to get inspector socket port on device F2028502-6846-4F76-8E81-90661EAE9440 for application org.nativescript.application.
On work we are using MacOS Catalina and my project works without any problems . However at home I am using BigSur (M1 Chip) I cant get the inspector socket to work.
I cant remember exactly but I think it worked when I was using xCode 12.2, but after updating to 12.4 I get the above error. Using xCode 12.2 again now the inspector doesnt work as well. So I am stuck with a not working inspector socket and I am running out of ideas. I even created a completely fresh project, sadly same effect.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (6 by maintainers)
I do not think this is Apple Silicon exclusive, I am having the same problems on a regular mac, I logged it here https://github.com/NativeScript/nativescript-cli/issues/5437 It seems like it’s related to XCode 12.4 or BigSur…I have wasted 2 days on trying to get the debugger to work on a blank project, still no solution for this. First it was saying “NativeScript debugger was not able to get inspector socket port on device”, then after some reinstalls/updates/upgrades it started connecting again, but only shows Console/Sources, now I am back at not being able to connect (it crashes the app upon connection without errors), or when it does connect it will only sources …I have no idea how else to approach this and it’s a really annoying issue since it hard blocks iOS development.
Small update: When using a real device connected via usb the logging works without problems
I wasn’t able to run tests yet but that would go along with the feeling I had. I am sure it worked with Xcode 12.2. I then upgraded to 12.4 and it broke the debugging. Downgrading again sadly didn’t resolve it