Xcode debug
nbonamy opened this issue · 2 comments
nbonamy commented
Hello,
I am going to be playing with EnergyBar and add new widgets and so on. Everything compiles successfully in Xcode 12 but when I run it from there nothing happens: Xcode directly switches to "Finished running EnergyBar". I even set a breakpoint in main.m which is not even reached.
What am I missing?
Thanks!
billziss-gh commented
I am not a Mac right now, but setting a breakpoint on main
should work. Not getting a breakpoint suggests that the process is not even started.
Possible reasons for this:
- EnergyBar depends on a number of internal API's, which may have changed or even be non-existent in later versions of the OS.
- EnergyBar depends on the OctoFeed framework, which is included in this project [link]. Perhaps the framework is not found during process loading and the process is never started?
- Perhaps some of the required entitlements have changed? Apple likes to change requirements for applications every year or so.
nbonamy commented
I can compile successfully and can run the binary from Finder or Terminal but not from Xcode.
Was able to implement what I wanted but debugging would definitely help 😀