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

Requesting contacts results in Contacts Not Import error #123

Closed mrferris closed 5 years ago

mrferris commented 5 years ago

Hi, I am running version 4.0.0, and when I call the following code, I get the following error. This code works fine and does not produce an error on version 3.0.5.

Code:

if !SPPermission.isAllowed(.contacts){...}

Error:

Status [10:0x0]: 1:57Fatal error: SPPermission - Contacts not import. See Readme: https://github.com/ivanvorobei/SPPermission: file SourceCode/iOS/ios-client/Pods/SPPermission/Source/SPPermission/SPPermission.swift, line 107

ivanvorobei commented 5 years ago

You install via pods?

ivanvorobei commented 5 years ago

@mrferris any info?

cukingpro commented 5 years ago

I have the same issue with photo library permission. Fatal error: SPPermission - Photo Library not import.

cukingpro commented 5 years ago

I install via cocoapods.

ivanvorobei commented 5 years ago

@cukingpro please attach your pod file

cukingpro commented 5 years ago

Podfile.zip I'm using SPPermission 4.0.5

0xmarkhernandez commented 5 years ago

Same issue with location and notification permission using version 4.0.5. Here are the error logs:

Fatal error: SPPermission - Location Always not import. See Readme: https://github.com/ivanvorobei/SPPermission
Fatal error: SPPermission - Notification not import. See Readme: https://github.com/ivanvorobei/SPPermission
ivanvorobei commented 5 years ago

@cukingpro please, see Readme file. Section installation. You need install module.

ivanvorobei commented 5 years ago

@markangelohernandez you install via module? Please, see Readme (This is written in error, you see?)