Latest 0.3.1
License MIT
Platforms ios 9.0, requires ARC
Dependencies NMXCore
Authors ,


Current Version of the NMXSwiftCore Library

You can find the latest documentation under

The Swift Library wraps and includes our Objective-C Library, which can be found here:

Include / Import


Navigate to the root directory of your .xcodeproj file.
If you don’t have a "podfile" created yet, open your terminal and cd to your .xcodeproj-file.
Perform the following command. Make sure you have cocoapods installed:

Cocoapods installation

Make sure to run latest cocoapods version:

[sudo] gem install cocoapods

Cocoapods Setup

Navigate to your.xcodeproj file in the Mac Terminal, then do:

pod install

Cocoapods – Include ios-objc-foundation-nmxcore:

Add the following line to your podfile:

pod 'NMXSwiftCore', '0.1.0'

A podfile could look like the following:

source ''

target 'ProjectTarget' do

pod 'NMXSwiftCore', '0.1.0'



Building Documentation

Documentation requires two components:

Then navigate in terminal to the root path of the repo, where ".jazzy.yaml" is located and run the following command:
You will find the updated documentation under ./docs
or simply run:
open ./docs/index.html

If you added a new section in the Library, make sure to add the related section to the umbrella header file for the documentation generation. See NamicsLibHeaders.h

How to update changes from the library.


To modify pods register at cocoapods:
Make sure to run latest cocoapods version:
[sudo] gem install cocoapods
[sudo] gem update cocoapods

Register/Add Owners for the Cocoapods Repo

pod trunk register [email protected] 'Vorname Nachname' --description='Namics MacBook'

Add Owners so they can also publish:
`pod trunk add-owner push ios-objc-foundation-nmxcore [email protected]

Automatic Deployment

You can automatically push your changes to the pod with calling
sh 0.2.1
It might require administrator rights for creating code documentation automatically, see above

Manual Deployment

  1. Do your changes:
    Open /Development/NMXLibrary.xcodeproj

  2. Go to the main folder from Terminal, where ‘NMXCore.podspec’ is located, e.g.:

    cd ~/Documents/ios-swift-foundation-nmxcore/
  3. Validate the pod lib file in terminal:
    pod lib lint NMXSwiftCore.podspec --verbose

  4. Validate the specification in terminal:
    pod spec lint

  5. Commit and push your changes in git, note down the tag id (important: the v-Prefix for tags!)

    git add -A && git commit -m "Release 0.1.0"
    git tag 'v0.1.0'
    git push --tags
    git push
  6. Modify the Namics-Library.podspec

    spec.version - new version
    spec.source - tag to the one from step (5)
  7. Update cocoapod spec:
    pod trunk push NMXSwiftCore.podspec –verbose

Latest podspec

    "name": "NMXSwiftCore",
    "version": "0.3.1",
    "summary": "Namics Core Library Wrapper used for iOS in Swift. Shall take care of reusable code.",
    "documentation_url": "",
    "homepage": "",
    "authors": {
        "Adriano Segalada": "[email protected]",
        "Tobias Baube": "[email protected]"
    "source": {
        "git": "",
        "tag": "v0.3.1"
    "platforms": {
        "ios": "9.0"
    "license": {
        "type": "MIT"
    "source_files": "Development/NMXSwiftCore/**/*.{swift}",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    "dependencies": {
        "NMXCore": []
    "subspecs": [
            "name": "NMXCoreDylib",
            "requires_arc": true,
            "platforms": {
                "ios": "9.0"

Pin It on Pinterest

Share This