Skip to content

Instantly share code, notes, and snippets.

@mayoff
mayoff / !README.md
Last active August 14, 2023 15:09
Debugging Objective-C blocks in lldb

The attached lldb command pblock command lets you peek inside an Objective-C block. It tries to tell you where to find the source code for the block, and the values captured by the block when it was created.

Consider this example program:

#import <Foundation/Foundation.h>

@interface Foo: NSObject
@end

@implementation Foo

@mzsoliman
mzsoliman / buddybuild_postbuild.sh
Created December 7, 2017 08:34
BuddyBuild Uploading Symbols to Instabug
# Copyright 2017 Instabug, Inc. All rights reserved.
#
echo "Instabug: Test"
echo "Instabug: Started uploading dSYM"
# Check for simulator builds
if [ "$EFFECTIVE_PLATFORM_NAME" == "-iphonesimulator" ]; then