SPM: no such module - System Library Wrapper

I have created the following packages:

1) SwifterSockets (Swift)
2) COpenSsl (wrapper for system libraries)
3) SecureSockets (Swift, uses SwifterSockets and COpenSsl)

Now I want to build a macOS app that uses SecureSockets.

I have created the app in the traditional way, via Xcode.
In this app I imported the frameworks created by SwifterSockets and SecureSockets.

When I try to use SecureSockets I get the error “No such module COpenSsl”

Any idea how I can include the system library wrapper ?

Regards,
Rien

Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: Balancingrock (Rien) · GitHub
Project: http://swiftfire.nl

Have a look at BlueSockets which does the same kind of thing:

There's a wrapper around OpenSSL as well:

Alex

···

On 26 Jan 2017, at 09:49, Rien via swift-users <swift-users@swift.org> wrote:

I have created the following packages:

1) SwifterSockets (Swift)
2) COpenSsl (wrapper for system libraries)
3) SecureSockets (Swift, uses SwifterSockets and COpenSsl)

Now I want to build a macOS app that uses SecureSockets.

I have created the app in the traditional way, via Xcode.
In this app I imported the frameworks created by SwifterSockets and SecureSockets.

When I try to use SecureSockets I get the error “No such module COpenSsl”

Any idea how I can include the system library wrapper ?

Regards,
Rien

Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: Balancingrock (Rien) · GitHub
Project: http://swiftfire.nl

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Thanks, that was interesting.
However I did not find a solution.

The problem is not that my COpenSsl does not work, it does. I can compile & link SecureSockets just fine.

However the (macOS cocoa) app that uses SecureSockets -even though it does not use COpenSsl- wants access to that module. And I don’t know how to provide that, nor do I know how to prevent this.

Regards,
Rien

Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: Balancingrock (Rien) · GitHub
Project: http://swiftfire.nl

···

On 26 Jan 2017, at 11:53, Alex Blewitt <alblue@apple.com> wrote:

Have a look at BlueSockets which does the same kind of thing:

GitHub - Kitura/BlueSocket: Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
GitHub - Kitura/BlueSSLService: SSL/TLS Add-in for BlueSocket using Secure Transport and OpenSSL

There's a wrapper around OpenSSL as well:

GitHub - Kitura/OpenSSL: Swift modulemaps for libSSL and libcrypto

Alex

On 26 Jan 2017, at 09:49, Rien via swift-users <swift-users@swift.org> wrote:

I have created the following packages:

1) SwifterSockets (Swift)
2) COpenSsl (wrapper for system libraries)
3) SecureSockets (Swift, uses SwifterSockets and COpenSsl)

Now I want to build a macOS app that uses SecureSockets.

I have created the app in the traditional way, via Xcode.
In this app I imported the frameworks created by SwifterSockets and SecureSockets.

When I try to use SecureSockets I get the error “No such module COpenSsl”

Any idea how I can include the system library wrapper ?

Regards,
Rien

Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: Balancingrock (Rien) · GitHub
Project: http://swiftfire.nl

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users