Cannot Attach Xcode to Fusion

Cannot Attach Xcode to Fusion

neil.mendoza
Contributor Contributor
1,813 Views
7 Replies
Message 1 of 8

Cannot Attach Xcode to Fusion

neil.mendoza
Contributor
Contributor

API support seems super buggy. I switched to using C++ because Python editing is broken, followed these instructions for debugging...

 

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-ECC0A398-4D89-4776-A054-F7B432F7FCF6

 

...and get the following error when I try to attach Xcode to Fusion 360...

 

Details

Could not attach to pid : “1626”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: Error 1
--
Error 1
Domain: IDEDebugSessionErrorDomain
Code: 3
--

 

1,814 Views
7 Replies
Replies (7)
Message 2 of 8

Mattxer
Advocate
Advocate

May i ask what was broken with python? were you using it with vscode? If so there is a known issue that has a simple workaround.

 

See this thread > https://forums.autodesk.com/t5/fusion-360-api-and-scripts/not-able-to-debug-scripts-add-ins-in-visua...

Matt Smith
Software Engineer - MSmithDev - https://msmithdev.com/
CAD/CAM/CNC - Micro Insert Inc. - https://microinsertinc.com/
0 Likes
Message 3 of 8

neil.mendoza
Contributor
Contributor

Thanks, I actually gave up on Python and wrote it in C++ debugging with a log file. Will try Python again next time I need to script something.

0 Likes
Message 4 of 8

rolandas_vegis
Advocate
Advocate

I have the same problem, porting our add-in from windows to Mac and can't debug. Is there still no solution to this?

 

Could not attach to pid : “1935”

Domain: IDEDebugSessionErrorDomain

Code: 3

Failure Reason: Error 1

User Info: {

    DVTRadarComponentKey = 855031;

    RawLLDBErrorMessage = "Error 1";

}

0 Likes
Message 5 of 8

nnikbin
Collaborator
Collaborator

Hi  @neil.mendoza , @rolandas_vegis , @Mattxer

I had the same problem with debugging my add-in on macOS Catalina (running on VirtualBox). Turning off SIP (or System Integrity Protection) solved it.

You should be very careful about disabling SIP, because it is one of the primary mechanisms which macOS uses to protect itself (it is introduced in El Capitan-2015). So remember to re-enable SIP when you've finished your task.

0 Likes
Message 6 of 8

KrisKaplan
Autodesk
Autodesk

Is it possible that you don't have developer mode enabled? You can try running the following in a terminal:

 

sudo DevToolsSecurity -enable

 

Shot in the dark...

 

Kris



Kris Kaplan
0 Likes
Message 7 of 8

nnikbin
Collaborator
Collaborator

Hi @KrisKaplan 

Before turning off SIP I googled and found "sudo DevToolsSecurity -enable" and tried it. But in my case it did not work.

I also tried many other suggestions. Only after turning off SIP, Xcode was able to attach to Fusion 360 process. My macOS is running on VirtualBox. Perhaps for other cases enabling DevToolsSecurity will work.

0 Likes
Message 8 of 8

rolandas_vegis
Advocate
Advocate

Had developer mode enabled, didn't do anything. Disabling SIP, does indeed work, thanks.