Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
325 views
in Technique[技术] by (71.8m points)

objective c - On one Mac, Xcode does not correctly attach to debug a privileged helper and I cannot set breakpoints etc. On another machine it works. Any solution?

I am developing a macOS application that uses a privileged helper following this very good Apple example, "Even Better Authorization Sample". Using the "Attach to process by PID or name" Xcode feature, I should be able to debug and set breakpoints both in the host app and the privileged helper. However, on my production machine this does not work and Xcode never stops on breakpoints, although it claims to be attached as root. I have System Integrity Protection disabled. I am using Xcode 12.3. On another Mac it works and it debugs the helper properly. Anybody has a suggestion ? Thanks a lot for your help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...