delba / Permission

A unified API to ask for permissions on iOS
MIT License
2.9k stars 320 forks source link

Still error on compiling in swift version 4.2 #138

Closed purva-dev closed 5 years ago

purva-dev commented 5 years ago

I've installed using cocoa pods --> pod 'Permission', :git => 'https://github.com/evdeve/Permission'

still i m getting below error :

Function with uninhabited return type 'PermissionType' is missing call to another never-returning function on all paths

quido3 commented 5 years ago

I have the same problem. Did you find a solution? I have been looking at different forks and all seem to have the same problem.

purva-dev commented 5 years ago

I have the same problem. Did you find a solution? I have been looking at different forks and all seem to have the same problem.

no i didn't find any solution till now

khambir commented 5 years ago

try this (Swift 5 version):

pod 'Permission', :git => 'https://github.com/khambir/Permission'

koust commented 5 years ago

I have the same problem. Did you find a solution? I have been looking at different forks and all seem to have the same problem.

Hello , @iOSIndianic @quido3

I have same problem. But I solved this problem.

Solution:

First of all , you should be open permission.swift file.

View line 136 in permission.swift

Change

public let type: PermissionType

To

public let type: PermissionType {
        fatalError()
}
purva-dev commented 5 years ago

try this (Swift 5 version):

pod 'Permission', :git => 'https://github.com/khambir/Permission'

it works.. thanks