Add `required` keyword to initializers other than initWithCoder:

Description

Our metadata mappings have only initWithCoder() method marked as required.
We need to do the same for all methods that implement a required protocol method.

Possible implementation: add ProtocolMappings.def with protocol declarations.
Protocol declarations should include `optional` or `required` keyword (if applicable).
This can be taken from Apple Help.

Example:
http://take.ms/0NS9N

Environment

None

Activity

Show:
Alex Petuschak
March 22, 2017, 3:53 AM

Related sample (calling self.init requires `required` initializer):

Alex Petuschak
September 20, 2019, 9:34 AM

Related report (david.chelidze@sentiance.com):

The one thing I really stuck is build errors. For lot's of classes I am getting Error like this:
'required' initializer 'init(arrayLiteral' must be provided by subclass of 'NSSet': https://cl.ly/e36b0b8b0ebb
But I am really not using any kind of NSSet at all and not sub classing!

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Low
Configure