>TargetEnvironmentHeader

TargetEnvironmentHeader

Generates a header which allows to inspect at compile time the installed pods and the installed specifications of a pod.

Example output:

#define COCOAPODS_POD_AVAILABLE_ObjectiveSugar 1
#define COCOAPODS_VERSION_MAJOR_ObjectiveSugar 0
#define COCOAPODS_VERSION_MINOR_ObjectiveSugar 6
#define COCOAPODS_VERSION_PATCH_ObjectiveSugar 2

Example usage:

#ifdef COCOAPODS
  #ifdef COCOAPODS_POD_AVAILABLE_ObjectiveSugar
    #import "ObjectiveSugar.h"
  #endif
#else
  // Non CocoaPods code
#endif

Inherits from:

Object