Skip to content

Instantly share code, notes, and snippets.

@looping
looping / gist:5509826b01733ad581e9
Created September 11, 2014 02:25
clang diagnostic ignored
// http://nshipster.com/clang-diagnostics/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
// code here ...
#pragma clang diagnostic pop
@looping
looping / gist:2a86326f08f4da460757
Created September 12, 2014 03:55
Switch current branch in git bare repository
git symbolic-ref HEAD refs/heads/master
@looping
looping / gist:0dabd9b9658e01d2af7a
Created September 16, 2014 01:33
makeObjectsPerformSelector
[@[] makeObjectsPerformSelector:(SEL)];
@looping
looping / gist:10a7fe5b2df5b59aaa39
Created September 18, 2014 01:57
Clean up Xcode Compile Cache
rm -rf ~/Library/Developer/Xcode/DerivedData
@looping
looping / gist:992131503c6284799e5d
Last active August 29, 2015 14:06
Calc iOS & Mac App Project's Code Lines
find . -name "*.m" -or -name "*.mm" -or -name "*.h" -or -name "*.c" -or -name "*.cpp" | xargs wc -l
find . -name "*.m" -or -name "*.mm" -or -name "*.h" -or -name "*.c" -or -name "*.cpp" | xargs grep -v "^$" | wc -l
@looping
looping / gist:3a8b05c69b10d92dda42
Created October 10, 2014 03:00
A way to quickly get a glance at the identities on your system that can be used for signing code is with the very versatile security command line tool:
security find-identity -v -p codesigning
@looping
looping / re-sign
Last active August 29, 2015 14:07
Sign a binary by using the codesign tool.
codesign -f -s 'iPhone Developer: <Name> (<XXX>)' Example.app
@looping
looping / gist:09c0bce50ec0f853160d
Created October 10, 2014 06:09
Get code signing status
codesign -vv -d Example.app
@looping
looping / gist:5ee09ab4754e52cec6a7
Created October 10, 2014 06:14
Verify signature
codesign --verify Example.app
@looping
looping / gist:694b0213ad04e324c18a
Created October 10, 2014 09:39
Show app entitlements in an XML property list
codesign -d --entitlements - Example.app