This code works on any thread:
NSLog(@"%@", NSThread.callStackSymbols);
Returns an array containing the call stack symbols. Each element is an
NSStringobject with a value in a format determined by thebacktrace_symbols()function.
This code works on any thread:
NSLog(@"%@", NSThread.callStackSymbols);
Returns an array containing the call stack symbols. Each element is an
NSStringobject with a value in a format determined by thebacktrace_symbols()function.