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
find . -name '*.dSYM' -exec dwarfdump --uuid '{}' \; | grep <UUID> |
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
find . -name "*.[hm]" -exec sed -i bak "/[nN]eedExpand/d" '{}' \; |
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
to determine whether you are running in the sandbox, compare the result of: | |
NSHomeDirectory (); | |
with: | |
struct passwd *userInfo = getpwuid(getuid()); | |
NSString *homeDirectory = [NSString stringWithUTF8String:userInfo->pw_dir]; |
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
NSSize s = { 1, 2 }; | |
(NSSize){ 1, 2 }; // same value | |
[layer setFrame: (CGRect){ origin, size }]; | |
- (BOOL)doWithError: (NSError **)error | |
{ | |
if(!error) | |
error = &(NSError *){ nil }; | |
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
// Getting list of linked libraries | |
uint32_t imageCount = _dyld_image_count(); | |
char **names = calloc(sizeof(char *), imageCount); | |
for (uint32_t idx = 0; idx < imageCount; idx++) | |
{ | |
names[idx] = (char *)_dyld_get_image_name(idx); | |
} |