Skip to content

Instantly share code, notes, and snippets.

@vivekvasani
Created December 17, 2013 22:13
Show Gist options
  • Save vivekvasani/8013526 to your computer and use it in GitHub Desktop.
Save vivekvasani/8013526 to your computer and use it in GitHub Desktop.
Check if Base SDK is set to desired SDK version and throw error if it doesn't match. I put this in my *.pch file.
// Check if Base SDK is set to desired SDK version and throw error if it doesn't match
#if __IPHONE_OS_VERSION_MAX_ALLOWED != __IPHONE_6_1
#error App should be built using iOS 6.1 SDK
#else
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment