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

Support Swift code #9

Open
annidy opened this issue May 6, 2023 · 2 comments
Open

Support Swift code #9

annidy opened this issue May 6, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request iOS

Comments

@annidy
Copy link

annidy commented May 6, 2023

Hi, romainthomas.

I test o-mvll on iOS project, it dosen't process swift file. any plan to support it?

@marcobrador marcobrador changed the title No obfuscate swift code Support swift code Feb 16, 2024
@marcobrador marcobrador changed the title Support swift code Support Swift code Feb 16, 2024
@marcobrador marcobrador added enhancement New feature or request iOS labels Feb 16, 2024
@marcobrador
Copy link
Collaborator

Hi @annidy,

Unfortunately, the Swift compiler does not support plug-ins (even though it's based on LLVM). If it did, theoretically o-MVLL should work out of the box to obfuscate Swift code.

We've created a PR to Apple's Swift compiler to add support for plug-ins (swiftlang/swift#68985), but meanwhile it has not been merged. If you want to express support for the PR to get some visibility, it'd be nice.

Thanks,
Marc

@thekief
Copy link

thekief commented Apr 4, 2024

Thanks for creating that PR at the repo. I looked into this topic previously and asked them to link the libLLVM in general, as it would also likely shave off quite some size in addition to providing all needed symbols separately.

One last remark: While trying a similar setup a bit more than a year ago, I noticed that I seemed to have some special use cases that required additional libraries of the LLVM infrastructure. Apple/Swift developers are quite restrictive in what they link with the library/applications they build. Did you verify that your plugin properly applies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iOS
Projects
None yet
Development

No branches or pull requests

4 participants