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

compiling error with "Freetype" library in Xcode project #133

Open
annapurnarelan20 opened this issue Jan 7, 2022 · 2 comments
Open

compiling error with "Freetype" library in Xcode project #133

annapurnarelan20 opened this issue Jan 7, 2022 · 2 comments

Comments

@annapurnarelan20
Copy link

Hi,
After doing all the steps for installation Swiftplot in my project,
I installed freetype lib with brew
and still getting the error as shown in the screenshot.

Plese help ! as I am stuck ...
Screenshot 2022-01-07 at 11 26 21 PM

@KarthikRIyer
Copy link
Owner

Hi

The error says that you're trying to build for iOS, but the freetype dylib is built for macOS. Freetype is used by the AGGRenderer. This does not have support for iOS right now. For iOS you can use the QuartzRenderer.

To build swiftplot itself for iOS, you need to make a change to the Package.swift file as mentioned here:

// Change the condition below to "!os(macOS)".

But if you're trying to add swiftplot as a dependency, I'm not sure how that's possible. Maybe @karwa knows a way?

You could try to add it as a local dependency and make the change as shown here (I haven't tried this): https://developer.apple.com/documentation/swift_packages/editing_a_package_dependency_as_a_local_package

@annapurnarelan20
Copy link
Author

yes thanks @KarthikRIyer ,was not able to edit the Package.swift as added the libaray as dependency , have to do that as you suggested will check this out how to add it as local dependency then will be able to do that.

Thanks for the Quick Support.

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