I'm trying to add a chart to an iOS app, but keep getting this error. I know what typically causes this (duplicate outlet connections), and I've gone through this question and tried a bunch of the other suggestions, but no luck. Tried deleting the app on the simulator, cleaning the project, and a couple other ideas.
I'm going through this tutorial on charting in iOS, and have followed the instructions exactly. I have a view with the class LineChartView
from the module Charts
. I have an outlet setup that looks like this:
@IBOutlet weak var progressChart: LineChartView!
But this gives me the error:
This class is not key value coding-compliant for the key progressChart
If I remove the outlet, the chart shows up with the expected label "No chart data available", so the framework is clearly working. I've tried deleting and recreating the view and outlet from scratch multiple times, but keep getting the same problem.
The view looks like this in my storyboard:
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Riq-m7-PZl" customClass="LineChartView" customModule="Charts">
<rect key="frame" x="16" y="175" width="343" height="265"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.93725490570000003" green="0.93725490570000003" blue="0.95686274770000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
And the connection looks like this:
<connections>
<outlet property="progressChart" destination="Riq-m7-PZl" id="IEj-3T-nAO"/>
</connections>
Any idea what else might cause this?