Skip to content

Instantly share code, notes, and snippets.

View jfuellert's full-sized avatar

Jeremy Fuellert jfuellert

  • Mayday Inc
  • Toronto, Ontario, Canada
View GitHub Profile
@bryantjustin
bryantjustin / post-checkout-pod-install.md
Last active August 29, 2015 14:01
Bash script that executes pod install.

Cocoapods git post-checkout

The following will execute pod install between checkouts. This is particularly useful for projects where the Pods directory is not checked in.

Installation:

  • Navigate to your project on terminal.
  • Open .git/hooks/post-checkout with your favourite text editor.
  • Copy and paste the following script:
#!/bin/sh
if [ -r Podfile ] ; then
@steipete
steipete / Macros.h
Last active January 6, 2024 07:24
Declare on your main init that all other init methods should call. It's a nice additional semantic warning. Works with Xcode 5.1 and above. Not tested with earlier variants, but should just be ignored. A reference to this macro shortly appeared in https://developer.apple.com/library/ios/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObj…
#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif