RNVectorIconManager 버전 에러 발생

오랜만에 질문 드립니다. build 시에 아래와 같은 버전에러? 가 나는데 해결 방안을 모르겠습니다…
알려주시면 무한 감사드리겠습니다!!!

/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:114:53: warning: 'UIFontWeightRegular' is only available on iOS 8.2 or newer [-Wunguarded-availability]
  NSNumber *fontWeight = [NSNumber numberWithDouble:UIFontWeightRegular];
                                                    ^~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:143:33: note: 'UIFontWeightRegular' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightRegular NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:114:53: note: enclose 'UIFontWeightRegular' in an @available check to silence this warning
  NSNumber *fontWeight = [NSNumber numberWithDouble:UIFontWeightRegular];
                                                    ^~~~~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:116:45: warning: 'UIFontWeightUltraLight' is only available on iOS 8.2 or newer [-Wunguarded-availability]
    fontWeight = [NSNumber numberWithDouble:UIFontWeightUltraLight];
                                            ^~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:140:33: note: 'UIFontWeightUltraLight' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightUltraLight NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:116:45: note: enclose 'UIFontWeightUltraLight' in an @available check to silence this warning
    fontWeight = [NSNumber numberWithDouble:UIFontWeightUltraLight];
                                            ^~~~~~~~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:118:45: warning: 'UIFontWeightBold' is only available on iOS 8.2 or newer [-Wunguarded-availability]
    fontWeight = [NSNumber numberWithDouble:UIFontWeightBold];
                                            ^~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:146:33: note: 'UIFontWeightBold' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightBold NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:118:45: note: enclose 'UIFontWeightBold' in an @available check to silence this warning
    fontWeight = [NSNumber numberWithDouble:UIFontWeightBold];
                                            ^~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:167:37: error: too many arguments to block call,expected 1, have 3
        reject(@"font_load_failed", @"Font failed to load", error);
        ~~~~~~                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:189:55: warning: 'UIFontWeightUltraLight' is only available on iOS 8.2 or newer [-Wunguarded-availability]
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightUltraLight] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:140:33: note: 'UIFontWeightUltraLight' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightUltraLight NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:189:55: note: enclose 'UIFontWeightUltraLight' in an @available check to silence this warning
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightUltraLight] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:191:55: warning: 'UIFontWeightRegular' is only available on iOS 8.2 or newer [-Wunguarded-availability]
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightRegular] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:143:33: note: 'UIFontWeightRegular' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightRegular NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:191:55: note: enclose 'UIFontWeightRegular' in an @available check to silence this warning
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightRegular] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~~~~
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:193:55: warning: 'UIFontWeightBold' is only available on iOS 8.2 or newer [-Wunguarded-availability]
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightBold] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~
In module 'UIKit' imported from /ios/Pods/Target Support Files/RNVectorIcons/RNVectorIcons-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h:146:33: note: 'UIFontWeightBold' has been explicitly marked partial here
UIKIT_EXTERN const UIFontWeight UIFontWeightBold NS_AVAILABLE_IOS(8_2);
                                ^
/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:193:55: note: enclose 'UIFontWeightBold' in an @available check to silence this warning
          [traits setValue:[NSNumber numberWithDouble:UIFontWeightBold] forKey:UIFontWeightTrait];
                                                      ^~~~~~~~~~~~~~~~
6 war
nings and 1 error generated.

에러는 여기서 나고 있네요. 나머진 warning이구요. RNVectorIconsManager.m 에서 쓰는 네이티브 API가 뭔가 잘못된 거 같아요. 최신 버전으로 업데이트 해보는 게 좋을 거 같네요.

1 Like