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

Any support for Linux ? #319

Open
amine2233 opened this issue Mar 19, 2025 · 0 comments
Open

Any support for Linux ? #319

amine2233 opened this issue Mar 19, 2025 · 0 comments

Comments

@amine2233
Copy link

amine2233 commented Mar 19, 2025

Description

This library is used inside a cli library, and it's not possible to compile this library because APIKit doesn't compile on Linux

It's possible to add this lines ?

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

it's sames that is not suffisent

OBJC_ASSOCIATION_RETAIN_NONATOMIC cause a failure
objc_getAssociatedObject
objc_setAssociatedObject
CFURLCreateStringByReplacingPercentEscapes
CFString
UTTypeCopyPreferredTagWithClass
kUTTagClassMIMEType`` UTTypeCreatePreferredIdentifierForTag kUTTagClassFilenameExtension`

maybe many other objc calls and constants

Other possibilities, is to use dependency inversion in some cases, to split parts

@amine2233 amine2233 changed the title Any support on Linux ? Any support for Linux ? Mar 19, 2025
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

1 participant