Latest 1.0.9
Homepage https://github.com/azawawi/SwiftyZeroMQ
License MIT
Platforms ios 10.0
Authors

SwiftyZeroMQ – ZeroMQ Swift Bindings for iOS

Swift
ZeroMQ
Platform
CocoaPods
Carthage
License

This project provides iOS Swift bindings for the
ZeroMQ C library. The code is written in Swift 3 and uses
a bundled stable iOS libzmq.a binary.

ZeroMQ (also spelled ØMQ, 0MQ or ZMQ) is a high-performance asynchronous
messaging library, aimed at use in distributed or concurrent applications. It
provides a message queue, but unlike message-oriented middleware, a ZeroMQ
system can run without a dedicated message broker. The library’s API is
designed to resemble that of Berkeley sockets.

Requirements

  • iOS 10+
  • Xcode 8.0+
  • Bitcode must be disabled (At the moment)

Project Goals

  • [ ] Provide an easy-to-use API for ZeroMQ using Swift
  • [x] Provide up to date ZeroMQ binaries for iOS (Currently 4.1.5, BitCode disabled)
  • [ ] Provide iOS 8.0+ binaries
  • [x] Support iOS platform for mobile app projects
  • [ ] Support watchOS, tvOS and MacOS platforms
  • [ ] Support Linux and macOS platforms for server-side projects
  • [x] CocoaPods support
  • [x] Carthage support
  • [ ] Swift package manager support
  • [ ] More official ZeroMQ examples written
  • [ ] Wrap more ZeroMQ API

Example

import SwiftyZeroMQ

let (major, minor, patch) = SwiftyZeroMQ.version
print("ZeroMQ library version is (major).(minor).(patch)")

More examples can be found in the
examples github repository.

Installation

CocoaPods

  • Add the following lines to your Podfile:

    use_frameworks!
    pod 'SwiftyZeroMQ', '~> 1.0.10'
  • Run the following command in the project root directory:

    $ pod install
  • Open the project in Xcode with the following command:
    $ open YourProject.xcworkspace

Carthage

In the project root directory:

  • Add the following lines to your ‘Cartfile’:

    github "azawawi/SwiftyZeroMQ" ~> 1.0.10
  • Build the SwiftyZeroMQ.framework with the following commands:

    $ carthage bootstrap --platform iOS
  • Open your Xcode project (if not open already)

  • In your target’s settings, please click on the "+" button under the "Embedded
    Binaries" section and add Carthage/Build/iOS/SwiftyZeroMQ.framework

Swift Pakcage Manager (SPM)

TODO

Testing

TODO

Troubleshooting

TODO

See Also

Author & License

Copyright (c) 2016 Ahmad M. Zawawi under the
MIT license.

A prebuilt iOS universal libzmq.a binary
is also included with this library under the
LGPL license.

Latest podspec

{
    "name": "SwiftyZeroMQ",
    "version": "1.0.9",
    "summary": "ZeroMQ Swift Bindings for iOS.",
    "description": "This project provides iOS Swift bindings for the ZeroMQnC library.",
    "homepage": "https://github.com/azawawi/SwiftyZeroMQ",
    "license": "MIT",
    "authors": {
        "Ahmad M. Zawawi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/azawawi/SwiftyZeroMQ.git",
        "tag": "1.0.9"
    },
    "platforms": {
        "ios": "10.0"
    },
    "libraries": "stdc++",
    "subspecs": [
        {
            "name": "SwiftyZeroMQ",
            "source_files": "SwiftyZeroMQ/*.swift",
            "dependencies": {
                "SwiftyZeroMQ/CZeroMQ": []
            }
        },
        {
            "name": "CZeroMQ",
            "source_files": "CZeroMQ/*.h",
            "vendored_libraries": "CZeroMQ/libzmq.a",
            "preserve_paths": "CZeroMQ/*"
        }
    ]
}

Pin It on Pinterest

Share This