RCBacktrace
Getting backtrace of any thread for Objective-C and Swift
Install / Use
/learn @woshiccm/RCBacktraceREADME
RCBacktrace
Getting backtrace of any thread for Objective-C and Swift. Only a small amount of C code, almost all done in Swift. It is is much more powerful than Thread.callStackSymbols, callStackSymbols can only get the current thread call stack symbol, and the symbol not Name Mangling in Swift。
Features
- [x] Support both Objective-C and Swift
- [x] Support get backtrace of any thread
- [x] Support swift_demangle
Usage
setup
RCBacktrace.setup()
callstack of thead
let symbols = RCBacktrace.callstack(.main)
for symbol in symbols {
print(symbol.description)
}

≈ Requirements
- iOS 8.0+
- Swift 4.0-5.x
Installation
Carthage
Add the following line to your Cartfile
git "https://github.com/woshiccm/RCBacktrace.git" "0.1.6"
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. To integrate Aspect into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'xxxx' do
pod 'RCBacktrace', '~> 0.1.6'
end
License
Aspect is released under the MIT license. See LICENSE for details.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
