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
#! /bin/bash | |
# See "To Use" instructions at at bottom of file | |
bumpBuildForSchemeTo() { | |
local scheme=$1 | |
local buildNumber=$2 | |
filePath=$(xcodebuild -workspace "$workspace" -scheme "$scheme" -configuration Debug -showBuildSettings | grep "^\s*INFOPLIST_FILE" | awk '{print $3}') |
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
# print out names of a class's methods by using the class's name. | |
# change the name of the class on the first line. Copy, paste, and press enter | |
po NSString *$className = @"UIView"; | |
po id $myClass = objc_getClass((const char *)[$className cStringUsingEncoding:4]); unsigned int $outCount; Method *$methods = (Method *)class_copyMethodList ($myClass, &$outCount); NSMutableArray *$array = [[NSMutableArray alloc] init]; | |
po for(NSUInteger $i = 0; $i < $outCount; $i++) { Method $method = $methods[$i];NSString *$methodName = [NSString stringWithCString:(char *)sel_getName((SEL)method_getName($method))];[$array addObject:$methodName]; } | |
po $array |
NewerOlder