From c612f0659c43d991305b7c89d98f7c10a8a6a25d Mon Sep 17 00:00:00 2001 From: Tomaz Kragelj Date: Fri, 27 Sep 2013 09:01:02 +0200 Subject: [PATCH] Fixed OS X build when using cocoapods. You can now use default cocoapods version and it'll build properly for both iOS and OS X targets. --- Source/UIResponder+RMErrorRecovery.h | 4 ++++ Source/UIResponder+RMErrorRecovery.m | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Source/UIResponder+RMErrorRecovery.h b/Source/UIResponder+RMErrorRecovery.h index 9dd9c11..56baebf 100644 --- a/Source/UIResponder+RMErrorRecovery.h +++ b/Source/UIResponder+RMErrorRecovery.h @@ -21,6 +21,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // +#if TARGET_OS_IPHONE + #import /*! @@ -40,3 +42,5 @@ #endif @end + +#endif diff --git a/Source/UIResponder+RMErrorRecovery.m b/Source/UIResponder+RMErrorRecovery.m index fc38bd7..874b6eb 100644 --- a/Source/UIResponder+RMErrorRecovery.m +++ b/Source/UIResponder+RMErrorRecovery.m @@ -21,6 +21,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // +#if TARGET_OS_IPHONE + #if !defined(__has_feature) #define __has_feature(x) 0 #endif @@ -83,3 +85,5 @@ - (void)rm_presentError:(NSError *)error completionHandler:(void (^)(BOOL recove } @end + +#endif