New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dataSource not available with xCode version 7.3 #269
Comments
What version of Core Plot are you using? The latest version has this declaration:
Note |
coreplot 2.0 downloades from release |
Same problem. version 2.0, XCode 7.3 |
i modified your code with my code its worked. but i don't this is the best way to fix this problem. |
Make sure the app is pointed at the right headers. The 2.0 release has the new declaration (with out the leading underscores) I posted above. Is this iOS or Mac? Are you using the release package or building from source? |
I used IOS version. using from release package. Still have an error. Here is CPTDefinitions.h screen short. Link binary in my project Do you have any ideas what wrong? Thank you. |
The headers are right now. Where are those build errors? In your app? Make sure those files import the Core Plot headers ( |
There is no dataSource property when i try to access its. My Xcode project created by appcelerator studio for create new module. |
I am also facing this issue 'dataSource is unavailable' due to the ARC is disabled in my Project. So If change this original line (CPTDefiniations.h): CorePlot v2.0 is currently been used in my project. |
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. |
Research info: Mike Ash has a good overview of ARC. |
At least for the |
It may be redundant, but it's obviously allowed. Core Plot has been around a long time. The big unanswered question I have is how does non-ARC client code deal with a |
While it may be allowed, its redundant in the property declaration, and causing a compiler error. Removing the |
…arations. It was redundant and caused problems with client code that does not use ARC. Fixed issue #269.
@eskroch I don't see this fix after installing Core Plot via CocoaPods (pod 'CorePlot', '~> 2.0'). |
Why some users like me does not issue this problem? Xcode 7.3 (pod 'CorePlot', '~> 2.0') too. |
Use this line in the pod file to get the latest code from the Master branch:
|
TODO: See if 1.6 fixes build error 'delegate' is unavailable CPTAnimationOperation Consider update to 2.2, or replace CorePlot with WKWebView and javascript library like D3.js core-plot/core-plot#269
* commit '2e6b25210926cf12a8b72a3aba167efe5252d3a2': Removed the unused curvedLineGranularity property from CPTScatterPlot. Fixed issue core-plot#270. 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 core-plot#269. Fixed a memory leak in CPTAnimation. Updated all scheme settings for Xcode 7.3. Added profiling app setting to the Mac Plot Gallery scheme. Fixed a type conversion warning in the Plot Gallery app. Fixed broken links on the Doxygen main page. Fixed a broken link in the README file.
After updated xCode latest version (7.3). There is an error with core plot datasource.
(Previous version its worked.)
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
The text was updated successfully, but these errors were encountered: