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

Swift package support #692

Closed
wants to merge 2 commits into from
Closed

Swift package support #692

wants to merge 2 commits into from

Conversation

grangej
Copy link

@grangej grangej commented Oct 3, 2019

Wanted to contribute this back , this adds Swift Package support to the library.

Add include directory

Resolve swift import header paths
@grangej
Copy link
Author

grangej commented Oct 3, 2019

I added a simple test case, I am unable to use the existing test cases since they contain mixed source, this is not supported under swift package manager.

//! Project version string for CocoaAsyncSocket.
FOUNDATION_EXPORT const unsigned char cocoaAsyncSocketVersionString[];

#import "../GCDAsyncSocket.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might cause problems. Maybe we should reorganize the folder structure instead?

@dsmurfin
Copy link
Contributor

Out of interest why is there a restriction to macOS 10.14 in your manifest @grangej ? I'm working on a package myself and I'm currently linking to your fork.

@yvbeek
Copy link

yvbeek commented Jan 19, 2020

You can use this fork of CocoaAsyncSocket for SwiftPM support if you like:
https://github.com/Building42/CocoaAsyncSocket

@chrisballinger
Copy link
Collaborator

SwiftPM support added in #706

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.

4 participants