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

ipsw cd gives '-' instead of '+' for class methods #647

Open
2 tasks done
DerekSelander opened this issue Feb 21, 2025 · 1 comment
Open
2 tasks done

ipsw cd gives '-' instead of '+' for class methods #647

DerekSelander opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DerekSelander
Copy link

What happened?

With this code

@interface MyClass : NSObject
@end

@implementation MyClass
- (instancetype)init {
    if (self = [super init]) {
        NSLog(@"%s:%d", __FUNCTION__, __LINE__);
    }
    return self;
}

+ (void)aClassMethod {
    NSLog(@"%s:%d", __FUNCTION__, __LINE__);
}
- (void)anInstanceMethod {
    NSLog(@"%s:%d", __FUNCTION__, __LINE__);
}
@end

produces the following:

@interface MyClass : NSObject

/* class methods */
-[MyClass aClassMethod];

/* instance methods */
-[MyClass init];
-[MyClass anInstanceMethod];

@end 

I'd expect -[MyClass aClassMethod]; to be +[MyClass aClassMethod];

You da bomb

How can we reproduce this?

See above description

ipsw version

ipsw 3.1.572

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@blacktop
Copy link
Owner

running w/ -V verbose mode would output this:

@interface MyClass : NSObject

/* class methods */
+ (void)aClassMethod;

/* instance methods */
- (id)init;
- (void)anInstanceMethod;

@end

thx for reporting! should be fixed with last commit 👍

@blacktop blacktop removed the triage label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants