erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Incompatible function pointer types #516

Closed BlixLT closed 3 months ago

BlixLT commented 2 years ago

We are trying to get rid of all warnings in our project and noticed one in ocmock:

xxx/NSObject+OCMAdditions.m:49:14: Incompatible function pointer types returning 'void (id _Nonnull, SEL _Nonnull, ...)' from a function with result type 'IMP' (aka 'id _Nullable (*)(id _Nonnull, SEL _Nonnull, ...)')

Hopefully you will fix this in the future. Thanks.

lpikorhcp commented 3 months ago

More importantly, this is now error in Xcode 16 beta 1.

erikdoe commented 3 months ago

Interesting. I think this has been fixed in 173955e. I hadn't closed this issue here because there was a problem with publishing the new version to Cocoapods. This has now been resolved, too. Please re-open this issue if the warning still occurs with OCMock 3.9.4.