Reputation: 2918
I have been building mac app on my mac mini and it always worked well but today i faced this error, searched a lot but no luck.
Message from debugger: unable to attach
What i tried:
Xcode 8.2
OSX 10.12.1
Please help :)
Upvotes: 8
Views: 4297
Reputation: 1377
Unfortunately, the above solutions didn't work for me (although I am sure they work for some people).
Here is what worked for me, in case this helps anyone else:
Create a new Xcode project
Single View App
then click Next
cmd + r
) the iOS app on a simulator like the iPhone 8 (starting a simulator and running the iOS app will take a little time, so have patients)cmd + r
)This, for some reason, allowed me to connect to the debugger with my macOS app...
Xcode version: 10.1, macOS Mojave version: 10.14.2
Upvotes: 0
Reputation: 570
I just had this problem today. I have little demo code in a mac project(created with Xcode 9.4
). This error just started to occur after I upgraded system to macOS Mojave 10.14
. However, in Xcode 10
this project runs no problem(without changing anything). If you can use Xcode 10 it will probably be fixed.
Upvotes: 0
Reputation: 9276
This is what fixed it for me, perhaps it will help others but I do realize the question was for 8.2. I had it set to Xcode 9 "New Build System" disabling this and switching to "Standard Build System" in the Project Settings under the File Menu. I had tried all the other things like killing DerivedData, clean build, restarting Xcode. I also verified that my dependent libraries were set correctly. The only thing that worked was disabling new "New Build System"
Upvotes: 4