diff --git a/Podfile b/Podfile index 78fb3e2..1702b02 100644 --- a/Podfile +++ b/Podfile @@ -1,4 +1,5 @@ source "https://github.com/CocoaPods/Specs.git" +# source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' platform :ios, 8.0 diff --git a/VirtualView/Core/VVErrors.h b/VirtualView/Core/VVErrors.h index 7de9cc5..9ec40fc 100644 --- a/VirtualView/Core/VVErrors.h +++ b/VirtualView/Core/VVErrors.h @@ -9,7 +9,11 @@ FOUNDATION_EXTERN NSErrorDomain const VVErrorDomain; +#if __IPHONE_OS_VERSION_MAX_ALLOWED <= __IPHONE_10_2 +NS_ENUM(NSInteger) { +#else NS_ERROR_ENUM(VVErrorDomain) { +#endif VVUnknownError = 0, VVNeedToBeOverridedError, VVWrongHeaderError,