-
Notifications
You must be signed in to change notification settings - Fork 603
Description
Hi,
I am trying to reference core-plot via carthage like github "core-plot/core-plot" ~> 2.2
, when I run carthage update --platform iOS
command, I get below error:
Build Failed
Task failed with exit code 65
Looking at build log, I see:
/Users/VZ/WorkSpace/MyProject/Carthage/Checkouts/core-plot/framework/Source/CPTTradingRangePlot.m:1226:33: error: implicit conversion from nullable pointer 'NSNumber * _Nullable' to non-nullable pointer type 'ObjectType _Nonnull' (aka 'id') [-Werror,-Wnullable-to-nonnull-conversion]
CPTNumberArray *yValues = @[[self cachedNumberForField:CPTTradingRangePlotFieldOpen recordIndex:idx],
^
/Users/VZ/WorkSpace/MyProject/Carthage/Checkouts/core-plot/framework/Source/CPTTradingRangePlot.m:1227:33: error: implicit conversion from nullable pointer 'NSNumber * _Nullable' to non-nullable pointer type 'ObjectType _Nonnull' (aka 'id') [-Werror,-Wnullable-to-nonnull-conversion]
[self cachedNumberForField:CPTTradingRangePlotFieldClose recordIndex:idx],
^
/Users/VZ/WorkSpace/MyProject/Carthage/Checkouts/core-plot/framework/Source/CPTTradingRangePlot.m:1228:33: error: implicit conversion from nullable pointer 'NSNumber * _Nullable' to non-nullable pointer type 'ObjectType _Nonnull' (aka 'id') [-Werror,-Wnullable-to-nonnull-conversion]
[self cachedNumberForField:CPTTradingRangePlotFieldHigh recordIndex:idx],
^
/Users/VZ/WorkSpace/MyProject/Carthage/Checkouts/core-plot/framework/Source/CPTTradingRangePlot.m:1229:33: error: implicit conversion from nullable pointer 'NSNumber * _Nullable' to non-nullable pointer type 'ObjectType _Nonnull' (aka 'id') [-Werror,-Wnullable-to-nonnull-conversion]
[self cachedNumberForField:CPTTradingRangePlotFieldLow recordIndex:idx]];
^
5 warnings and 4 errors generated.
Any ideas for this?
Thanks,
Vic