UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Access with Files app to JSON files written with the app in the iPhone device

Forums > iOS

I've written an app that writes a JSON file on the iPhone device, but I don't know how to access with the Files app to that file, that I suppose is in the sandbox. I write the file in the documents directory and I know the full path of the file. Must I have any Custom iOS Target Property in the app target to do that?

I don't have any problem to access that files with the simulator in a folder in the Mac.

As an example, this is the path I get in the iPhone device: file:///var/mobile/Containers/Data/Application/FAF9BCDE-CA79-41F0-9E0A-77315BAAECF2/Documents/authors.json

3      

I've just found that with the Custom iOS Target Property, Supports opening documents in place to YES it's possible to access the app files with the Files app in the iPhone/iPad physical device

3      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.