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

Adding macOS support for static Objective-C framework #6021

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TimOliver
Copy link
Contributor

Hi @tgoyne! Long time no see! I hope everyone's been doing well!

I'm working on a small CLI tool to dynamically produce Realm files on macOS. Since CLI programs can't link to dynamic frameworks very easily, I thought it would be easier to just statically link a copy of Realm Objective-C.

But it turns out Realm Objective-C only supports dynamic frameworks on macOS for now.

I asked @bdash a while back and he said the only thing that should be needed to get static support working is to add macosx to the list of supported platforms.

I made that change, and it all seems to be working now. Since this adds a small bit of value back to Realm Cocoa, I thought I'd submit a PR.

I realize that in terms of build process and testability, it might require some more work to get this fully integrated. I'm happy to help anyway I can. Let me know. :)

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants