Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbol import in lldb #39

Open
reverseXiang opened this issue May 31, 2023 · 2 comments
Open

symbol import in lldb #39

reverseXiang opened this issue May 31, 2023 · 2 comments

Comments

@reverseXiang
Copy link

I would like to ask you how to solve the problem of symbol import in lldb, when I use it, I get an error like this "use of undeclared identifier 'Method'", and it seems to be very time consuming to import the required system headers one by one, because one system header file may depend on another system header file.

@DerekSelander
Copy link
Owner

Happy to look into it, please give me a concrete example of what Xcode are you using, what you are trying to do, and what's failing

@doraorak
Copy link

doraorak commented Jun 9, 2024

This is on a windows machine remote debugging an arm64 ios 17.4 device for the process of instagram via gdb-remote protocol.

search UIView
error:


error: error: error: <user expression 9>:7:5: unknown type name 'CFMutableSetRef'
7 | CFMutableSetRef classesSet;
| ^
error: <user expression 9>:8:5: unknown type name 'CFMutableSetRef'
8 | CFMutableSetRef results;
| ^
error: <user expression 9>:11:5: unknown type name 'CFMutableArrayRef'
11 | CFMutableArrayRef ptrRefResults;
| ^
error: <user expression 9>:15:21: unknown type name 'task_t'
15 | auto task_peek = [](task_t task, vm_address_t remote_address, vm_size_t size, void **local_memory) -> kern_return_t {
| ^
error: <user expression 9>:15:34: unknown type name 'vm_address_t'
15 | auto task_peek = [](task_t task, vm_address_t remote_address, vm_size_t size, void **local_memory) -> kern_return_t {
| ^
error: fatal too many errors emitted, stopping now
error: while importing modules:
Header search couldn't locate module Foundation
error: Header search couldn't locate module ObjectiveC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants