From 6101b837651b4a34b02b0bf283940b0b114bb763 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Sat, 27 Jan 2024 11:30:15 -0800 Subject: [PATCH 1/2] Fix Xcode 15.3 build error on Intel Macs Fix #536 --- Source/OCMock/NSObject+OCMAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OCMock/NSObject+OCMAdditions.m b/Source/OCMock/NSObject+OCMAdditions.m index cf4674ea..2d62bc61 100644 --- a/Source/OCMock/NSObject+OCMAdditions.m +++ b/Source/OCMock/NSObject+OCMAdditions.m @@ -46,7 +46,7 @@ + (IMP)instanceMethodForwarderForSelector:(SEL)aSelector } if(needsStructureReturn) - return _objc_msgForward_stret; + return (SEL)_objc_msgForward_stret; #endif return _objc_msgForward; From 173955e93e6ee6999a10729ab67e4b4efdd1db6d Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Sat, 27 Jan 2024 11:40:24 -0800 Subject: [PATCH 2/2] Update NSObject+OCMAdditions.m --- Source/OCMock/NSObject+OCMAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OCMock/NSObject+OCMAdditions.m b/Source/OCMock/NSObject+OCMAdditions.m index 2d62bc61..f97ecbd3 100644 --- a/Source/OCMock/NSObject+OCMAdditions.m +++ b/Source/OCMock/NSObject+OCMAdditions.m @@ -46,7 +46,7 @@ + (IMP)instanceMethodForwarderForSelector:(SEL)aSelector } if(needsStructureReturn) - return (SEL)_objc_msgForward_stret; + return (IMP)_objc_msgForward_stret; #endif return _objc_msgForward;