Chapter 4 image lookup not working

Hi I am trying to do:
image lookup -n “-[UIViewController viewDidLoad]”
But there is not output in the terminal, I follow this steps:

  1. Open Xcode
  2. Open the Signal project
  3. Build and run the app
  4. Pause the app
  5. Open the terminal
  6. lldb -n Xcode
  7. image lookup -n “-[UIViewController viewDidLoad]”
    I don’t know how to do it, please any help.

Thanks in advance,

Felix.

2 Likes

@lolgrep Do you have any feedback on this? Thank you - much appreciated! :]

Hey Felix, Chapter 4 only has you exploring iOS applications, not macOS applications. There’s no need to open up Terminal to attach to Xcode.

Xcode will link to AppKit so there won’t be any UIViewControllers but there will be NSViewControllers (i.e. if you were exploring Xcode, you could query via (lldb) image loo -n "-[NSViewController viewDidLoad]", but that’s not what Chapter 4 wants you to do)

Explore the Signals iOS application via Xcode’s console. Through here, you’ll find the UIKit method -[UIViewController viewDidLoad]

Good luck

Yeah, I was also confused here also, I was trying to follow along in the Terminla’s LLDB. You should better the book by adding “in Xcode’s console” where appropriate. I just spent an hour or two debugging! :joy:

2 Likes

This topic was automatically closed after 166 days. New replies are no longer allowed.