Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of unresolved identifier 'LocationConfiguration' #11

Closed
aphex3k opened this issue May 11, 2018 · 1 comment
Closed

Use of unresolved identifier 'LocationConfiguration' #11

aphex3k opened this issue May 11, 2018 · 1 comment

Comments

@aphex3k
Copy link

aphex3k commented May 11, 2018

  1. I installed the permissions service via cocoapods
  2. I imported the PermissionConfiguration.xcconfig
  3. I edited the config file for location permission only

I added this code to my ViewController that implements Permissible protocol:

        let config = LocationConfiguration(.always)
        
        Permission<LocationPermission>.prepare(for: self, with: config) { (granted) in
            if granted {
                print("Granted")
            } else {
                print("Error")
            }
            
        }

LocationConfiguration is undefined when compiling...
LocationPermission is undefined when compiling...

@hellensoloviy
Copy link
Contributor

Hi, aphex3k!

1. Why are you importing and editing the .xcconfig file if you are installing via cocoapods?
You need to config and import this file only in case of Carthage. If u want to use cocoapods u don't need to do any additional config, but only simple default install with:

pod "PermissionsService/Location"

in your .pod file.
Please see the link: https://github.com/lemberg/ios-permissions-service#cocoapods

2. And about undefined compiling issue.
Is the Permissible protocol undefined too? Have u add import PermissionsService to this ViewController?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants