Duolith docs

Errors E0200 to E0299

E0221 Unknown permission in permissions.yaml

Message name is not a permission with a usage description

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

permissions.yaml, at the project's root, replaces the sentence iOS shows when it asks for a permission, one line per permission, such as camera: Scan receipts to add them to an expense. Only permissions the user is asked about have one; they are listed in spec/effects/effects.yaml. A description must say something, and may hold no control character but tab and newline, since it goes into the Info.plist as it is.

How to fix it

Use one of the listed permission names with a sentence, or remove the line.

In a terminal

duolith explain E0221

Mentioned in