Closed ZenonHuang closed 3 years ago
When I have some code
- (CGPoint)funcToSwizzleReturnPoint:(CGPoint)point { return CGPointZero; }
I use Aspects:
SEL selector = NSSelectorFromString(@"funcToSwizzleReturnPoint:"); [Obj aspect_hookSelector:selector withOptions:AspectPositionAfter usingBlock:^(id<AspectInfo> info){ NSLog(@"aspect obj"); } error:nil];
Run on simulator iphone5s/6s/7, it crash.
So. I try to add code
#if defined(__LP64__) && __LP64__ if (valueSize == 16) { methodReturnsStructValue = NO; } #endif
It work.
When I have some code
I use Aspects:
Run on simulator iphone5s/6s/7, it crash.
So. I try to add code
It work.