1

we all know that if we build and run an app from XCode, we can see all the debugging, but what if we want to debug an app preinstalled on iPhone Simulator, I can't seem to find a way to do this, is this possible? how?

I tried iOS Console, but it doesn't seem to even work, the beta has expired.

thanks

DeyaEldeen
  • 10,847
  • 10
  • 42
  • 75

2 Answers2

1

If you just want to see the log output (e.g. NSLog()), see the following answer explaining where to find the simulator's system.log file.

https://stackoverflow.com/a/10165649

Note that if you are using Swift, "print" statements will not be written to the log file; they will only be displayed in Xcode's console.

Community
  • 1
  • 1
1

the best way for me was

tail -f /Users/userName/Library/Logs/CoreSimulator/appID/system.log

it prints all data into mac terminal even though if you are not running the app from XCode or something, I wish I knew that before...

DeyaEldeen
  • 10,847
  • 10
  • 42
  • 75