I am developing a macOS app that runs on 10.11+. My dev machine runs 10.12 and quite possibly sometime later today 10.13.
To test the app on 10.11 I copy it into a Parallels virtual machine that runs the older version(s) of macOS. Now if I wanted to actually debug the app under the old system, what would I have to do (Is this even possible)? I had a crash that only happened under 10.11 and it was really hard to debug without having breakpoints available.
The following problems arise:
I use Xcode 9 which requires 10.12 afaik, so I can't just run Xcode inside the VM (Aside from the fact that I am specifically building the app with the latest 10.12 SDK, which wouldn't be available on 10.11?).
So is it possible to actually either
- start the app inside the VM by "running" it from Xcode on the host?
- attach after the app is manually run from outside Xcode?
- not use Xcode but at least debug from the command line?
How is that problem usually solved?