core-plot: dataSource not available with xCode version 7.3
After updated xCode latest version (7.3). There is an error with core plot datasource. (Previous version its worked.)
datasource not available
this is original
@property (nonatomic, readwrite, cpt_weak_property) __cpt_weak id<CPTPlotDataSource> dataSource;
and i just remove __cpt_weak it worked.
@property (nonatomic, readwrite, cpt_weak_property) id<CPTPlotDataSource> dataSource;
i don’t know can i remove __cpt_weak.
@eskroch
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 17 (7 by maintainers)
Commits related to this issue
- Removed the cpt_weak definition and removed it from all property declarations. It was redundant and caused problems with client code that does not use ARC. Fixed issue #269. — committed to core-plot/core-plot by eskroch 8 years ago
- fix coreplot incompatibility with Xcode 7.3 (remove __weak) https://github.com/core-plot/core-plot/issues/269 — committed to Backelite/core-plot by deleted user 8 years ago
- In Podfile update CorePlot from 1.5.1 to 1.6. TODO: See if 1.6 fixes build error 'delegate' is unavailable CPTAnimationOperation Consider update to 2.2, or replace CorePlot with WKWebView and javasc... — committed to DiabetesCompass/Diabetes_Compass by beepscore 8 years ago
- Merge commit '2e6b25210926cf12a8b72a3aba167efe5252d3a2' * commit '2e6b25210926cf12a8b72a3aba167efe5252d3a2': Removed the unused curvedLineGranularity property from CPTScatterPlot. Fixed issue #270.... — committed to shinjukunian/core-plot by deleted user 8 years ago
Weak properties require automatic reference counting. Turning on ARC in the files that reference any Core Plot weak properties will eliminate the error.
I know how, but I’m not sure if I can safely turn off the weak setting when compiling client apps without ARC. I need to research that further.
Same problem. version 2.0, XCode 7.3