Latest 1.0.0
Homepage https://github.com/gumob/CallStackParser
License MIT
Platforms ios 8.0, tvos 9.0, watchos 2.0, osx 10.10, requires ARC
Frameworks Foundation
Authors

Carthage compatible
Version
Platform
Build Status
Language
Packagist

A swift library to parse call stack symbol supporting iOS, tvOS, watchOS, and macOS.
Most of all source codes are ported from GDXRepo/CallStackParser.
The version on this repository is added multiple platform support, support for Carthage and Cocoapods.

Requirements

CallStackParser supports multiple platforms

  • iOS 9.0 or later
  • macOS 10.10 or later
  • tvOS 9.0 or later
  • watchOS 2.0 or later
  • Swift 4.2

Installation

Carthage

Add the following to your Cartfile and follow these instructions.

github "gumob/CallStackParser"

CocoaPods

To integrate CallStackParser into your project, add the following to your Podfile.

pod 'CallStackParser'

Usage

Print simplified call stack symbols:

import CallStackParser

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        foo()
    }

    func foo() {
        bar()
    }

    func bar() {
        print(Thread.simpleCallStackString)
        // [CallStack:3/3] ViewController                       bar()
        // [CallStack:2/3] ViewController                       foo()
        // [CallStack:1/3] ViewController                       viewDidLoad()
    }

}

Read the API reference, or check example projects for detailed information.

Copyright

CallStackParser is released under MIT license, which means you can modify it, redistribute it or use it however you like.

Latest podspec

{
    "name": "CallStackParser",
    "version": "1.0.0",
    "summary": "A swift library to parse call stack symbol supporting iOS, tvOS, watchOS, and macOS.",
    "homepage": "https://github.com/gumob/CallStackParser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gumob": "[email protected]"
    },
    "frameworks": "Foundation",
    "requires_arc": true,
    "source": {
        "git": "https://github.com/gumob/CallStackParser.git",
        "tag": "1.0.0"
    },
    "source_files": "Source/*.{swift}",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0",
        "watchos": "2.0",
        "osx": "10.10"
    },
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This