sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

SPPermission Type #254

Closed SouthernGirlWhoCode closed 3 years ago

SouthernGirlWhoCode commented 3 years ago

When creating permission for camera, notification and others, I'm getting this error "Type 'Array.ArrayLiteralElement' (aka 'SPPermissions.Permission') has no member 'camera'"

Screenshot 2021-08-02 at 13 33 47

I copied all of the subfolders from Source folder into my project.

ivanvorobei commented 3 years ago

Please, provide details about install way and imports.

SouthernGirlWhoCode commented 3 years ago

Please, provide details about install way and imports.

See edited: I copied all of the subfolders from Source folder into my project.

ivanvorobei commented 3 years ago

Did you add compile flags?

SouthernGirlWhoCode commented 3 years ago

Did you add compile flags?

Yes I did as instructed - https://github.com/ivanvorobei/SPPermissions/blob/main/CONTRIBUTING.md#active-compilation-conditions

ivanvorobei commented 3 years ago

Share please how you added this flags

SouthernGirlWhoCode commented 3 years ago

Share please how you added this flags

Screenshot 2021-08-02 at 19 02 14
ivanvorobei commented 3 years ago

Please, do this. I made empty project and tested - all should be good. Debug not required.

Screenshot 2021-08-02 at 21 07 58