Add the unavailable attribute to the header to generate a compiler error on any call to init.
- (instancetype) init __attribute__((unavailable("init not available")));
If you don't have a reason, just type __attribute__((unavailable))
, or even __unavailable
: