Skip to content

iOS Xcode 10 - Build errors with carthage #388

@VicZhang1

Description

@VicZhang1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions