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 Package Manager for Xcode 11 #283

Open
MattGuerrette opened this issue Jun 20, 2019 · 3 comments
Open

Support Swift Package Manager for Xcode 11 #283

MattGuerrette opened this issue Jun 20, 2019 · 3 comments

Comments

@MattGuerrette
Copy link

Is it possible to implement support for installing using Swift Package Manager?

This could be quite useful now that starting with Xcode 11 there is first class support for spm in the IDE.

@mRs-
Copy link

mRs- commented Nov 28, 2019

That would be awesome!

@mdyson
Copy link
Contributor

mdyson commented Dec 10, 2019

I started working on support for this here: https://github.com/mdyson/NSLogger/blob/spm-support/Package.swift

There are still some issues building though. One that I've run into so far is that there doesn't seem to be an easy way to properly disable ARC support (which is currently needed for this lib on the obj-c side) without adding the unsafe flag, which causes xcode to reject the package when imported. I'll play around with this a bit more on my free time and see if I can get it to work, the easy solution might be to migrate the project to use ARC and then tackle any other existing issues afterwards.

The big issue is getting the obj-c code to compile with swift pm, it is possible but makes this much more complex.

@mRs-
Copy link

mRs- commented Feb 20, 2020

maybe in the future we could simple add this as a pre-compiled binary?

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

3 participants