Skip to content
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

Class missing issue #463

Closed
arunmahask opened this issue Mar 24, 2022 · 3 comments
Closed

Class missing issue #463

arunmahask opened this issue Mar 24, 2022 · 3 comments

Comments

@arunmahask
Copy link

-(nullable id)debugQuickLookObject
{
const CGFloat screenScale = 1.0;

CGSize layerSize = [self layerSizeForScale:screenScale];

CGRect rect = CGRectMake(0.0, 0.0, layerSize.width, layerSize.height);

**return CPTQuickLookImage(rect, ^(CGContextRef context, CGFloat scale, CGRect bounds)**
{
    CGPoint symbolAnchor = self.anchorPoint;

    self.anchorPoint = CPTPointMake(0.5, 0.5);

    [self renderAsVectorInContext:context atPoint:CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds)) scale:scale];

    self.anchorPoint = symbolAnchor;
});

}

error messages:

Implicit declaration of function 'CPTQuickLookImage' is invalid in C99
Incompatible integer to pointer conversion returning 'int' from a function with result type 'id _Nullable'

Please explain about the CPTQuickLookImage class not available in side the framework/source/ path

@eskroch
Copy link
Member

eskroch commented Mar 24, 2022

The CPTQuickLookImage() function is defined in the platform-specific functions file. The compiler can't find the right header file.

What version of Core Plot are you using? How is it imported in your project (dependent build, dependency manager, Swift PM, etc.)?

@arunmahask
Copy link
Author

arunmahask commented Apr 28, 2022

i am using core plot version 2.3.

i have imported by using pod. i am using this version for objective C project, not swift project.

now the project run successfully, but i am having issue, i.e "ld: framework not found CorePlot
clang: error: linker command failed with exit code 1 (use -v to see invocation)"

When i am trying to archive the project to upload in testflight.

@eskroch
Copy link
Member

eskroch commented Apr 9, 2023

This should be fixed on the release-2.4 branch. Let me know if anyone is still seeing this issue with the latest code.

@eskroch eskroch closed this as completed Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants