This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <objc/runtime.h> | |
(void)instrumentObjcMessageSends(YES); //to start | |
(void)instrumentObjcMessageSends(NO); //to stop | |
// print result: tail -100f /tmp/msgSends-XXXX | |
// Source: http://bonto.ch/blog/2012/05/30/log-all-messages-in-objective-c/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#--------- | |
# Script to change the prefix of a framework | |
#--------- | |
import os | |
import re | |
import string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: add to your .bashrc / .zshrc / whatever | |
# run like this - appdir <appname> | |
appdir() { | |
ps ax | grep $1.app | grep -v grep | awk '{print "\""$5" "$6" "$7"\""} ' | sed "s/$1\.app\/$1//g" | xargs open | |
} |
NewerOlder