[Xcode] Debugger cannot attach a process to Terminal because of SIP
| Originator: | AustinZheng | ||
| Number: | rdar://23141155 | Date Originated: | 16-Oct-2015 00:51 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: | Always |
Summary: I'm developing a library that comes with a small command-line application for invoking it. Because the Xcode built-in console has issues with libedit and does not properly echo user input, I've configured my Xcode scheme to run my command-line application within Terminal.app. This worked fine until I upgraded to 10.11. Now I have to choose between a broken workflow and turning off SIP completely. Steps to Reproduce: 1. Create a simple command-line application using Xcode 2. Using the instructions in the following link, configure the scheme by changing the executable to 'Terminal.app' and adding the command line arguments: http://stackoverflow.com/questions/7780301/how-to-run-command-line-application-from-the-terminal 3. Attempt to build/run the app. Expected Results: Terminal.app opens running the command-line application, as it did in previous versions of OS X. Alternatively, an error message comes up with some provision to configure the system to allow this behavior without completely disabling SIP. Actual Results: The application does not launch. The Xcode console prints out the following message: "Message from debugger: cannot attach to process due to System Integrity Protection". Version: Xcode 7.1b3 (7B75), OS X 10.11 (15A284)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!