Latest 1.1.0
Homepage https://github.com/thecatalinstan/CRSystemInfoHelper
License MIT
Platforms ios 6.0, osx 10.8, tvos 9.0, watchos 2.0, requires ARC
Authors

Version Status Platform Carthage compatible
MIT License

CSSystemInfoHelper

A utility library for getting system info. It’s meant to provide a more straightforward way of accessing information only available through C APIs and to provide shorthands for most common usage scenarios.

Installation

Install using CocoaPods by adding this line to your Podfile:

use_frameworks!
pod ‘CSSystemInfoHelper’

Getting Started

Installation through CocoaPods

Install using CocoaPods by adding this line to your Podfile:

use_frameworks!
pod ‘CSSystemInfoHelper’

In your Project

import CSSystemInfoHelper

print("(CSSystemInfoHelper.sharedHelper().systemInfoString)"

Examples

Please note that you can also see usage examples in the example app

Getting IPv4 interfaces and addresses

for (ifname, ipaddr) in CSSystemInfoHelper.sharedHelper().AllIPAddresses {
    print("(ifname): (ipaddr)")
}

Getting System Info from uname(3)

for (key, value) in CSSystemInfoHelper.sharedHelper().systemInfo {
    print("(key): (value)")
}

Getting Human-readable Memory Usage

print(CSSystemInfoHelper.sharedHelper().memoryUsageString)

Latest podspec

{
    "name": "CRSystemInfoHelper",
    "version": "1.1.0",
    "license": "MIT",
    "summary": "A utility library for getting system info.",
    "homepage": "https://github.com/thecatalinstan/CRSystemInfoHelper",
    "authors": {
        "Cu0103tu0103lin Stan": "[email protected]"
    },
    "social_media_url": "http://twitter.com/catalinstan",
    "source": {
        "git": "https://github.com/thecatalinstan/CRSystemInfoHelper.git",
        "tag": "1.1.0"
    },
    "module_name": "CRSystemInfoHelper",
    "source_files": "CRSystemInfoHelper/CRSystemInfoHelper.{h,m}",
    "public_header_files": "CRSystemInfoHelper/CRSystemInfoHelper.h",
    "platforms": {
        "ios": "6.0",
        "osx": "10.8",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "ios": {
        "frameworks": "Foundation"
    },
    "osx": {
        "frameworks": "Foundation"
    },
    "tvos": {
        "frameworks": "Foundation"
    },
    "watchos": {
        "frameworks": "Foundation"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This