Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Getting Started #112

Closed
AdventuresOfMar opened this issue Oct 30, 2015 · 7 comments
Closed

Getting Started #112

AdventuresOfMar opened this issue Oct 30, 2015 · 7 comments
Labels

Comments

@AdventuresOfMar
Copy link

Hello, I just pulled permissionscope into my project via cocoapods, I followed your instructions but permissions don't pop up for my iphone 6 only the emulator

@nickoneill
Copy link
Owner

Hey @AdventureOfMar, are you using this in an existing project? Keep in mind the dialog will only open if you have unaccepted permissions; it's automatically bypassed if all the permissions are already granted.

@AdventuresOfMar
Copy link
Author

Hi @nickoneill :) I am, first time building the app on my iphone 6 and the dialogs never appear. My xcode is xcode 7 with swift 2.1

@nickoneill
Copy link
Owner

I'm not sure what the issue is. We could potentially narrow it down if you post the relevant code that you're using for permissionscope.

@AdventuresOfMar
Copy link
Author

Here's my code: https://gist.github.com/bre7/d447e5e62a07e3c631d8

I think that I've been asking the wrong question. I completely looked over the show.pscope function and now getting the dialog to appear but, whenever I click the button to allow access to permissions or click on the show me button. I'm taken to the ios settings but the only thing that appears under allow access is cellular data

@nickoneill
Copy link
Owner

Give this a shot without the debugger, i.e. run it on a device without Xcode. See #61 for a case where "show me" links don't work with the debugger.

@AdventuresOfMar
Copy link
Author

Hmm, I'm not exactly sure that this is my issue. I've tried resetting my phone, deleting the app rebuilding, and running without the build strictly running on the device and still no luck. No matter what item I call to request permissions for i.e. contacts, location, photos, camera, microphone non of these items appear under Settings/AppName. The app name is correct but I'm not sure what I'm doing wrong. I deleted the cocopod and reinstalled and still no luck either. When i download the zip from your repo everything works perfectly. A few errors that are being printed are as follows

2015-11-03 16:17:31.463 Notice[2602:810922] _BSMachError: (os/kern) invalid capability (20)
2015-11-03 16:17:31.464 Notice[2602:810922] _BSMachError: (os/kern) invalid name (15)
got results [Camera Unauthorized, Microphone Unknown, Photos Unknown]

@bre7
Copy link
Collaborator

bre7 commented Nov 3, 2015

From the Apple dev forums:

Changing Localization native development region in info.plist to United States instead of en

Update: If everything works from the repo, there's no need for this issue anymore. Mentioned warnings/errors are the same as #127...Closing issue.

@bre7 bre7 closed this as completed Dec 7, 2015
@bre7 bre7 removed the needs repro label Dec 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants