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

GUI-Mac App #4

Open
jhonny-me opened this issue Mar 20, 2017 · 2 comments
Open

GUI-Mac App #4

jhonny-me opened this issue Mar 20, 2017 · 2 comments

Comments

@jhonny-me
Copy link
Owner

jhonny-me commented Mar 20, 2017

Can using mobiledevice to list devices, but have pb to install ipa to iphone. Don't know if its a sandbox permission or something else.

@jhonny-me
Copy link
Owner Author

Ok, it turns out App treat ~/Downloads/ as a folder at the same level of app. Here goes the logs:

print(try! FileManager.default.contentsOfDirectory(atPath: "~/Downloads/"))
["Access"]

screen shot 2017-03-20 at 13 04 38

So, I will need to find the real Download folder.

@jhonny-me
Copy link
Owner Author

Solved with this API:

let path = (AppDelegate.downloadPath as NSString).expandingTildeInPath

coming from: http://stackoverflow.com/a/17581217/4786328

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

No branches or pull requests

1 participant