NEW: Learn to build amazing SwiftUI apps for macOS with my new book! >>

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

1      

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

1      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Spend less time managing in-app purchase infrastructure so you can focus on building your app. RevenueCat gives everything you need to easily implement, manage, and analyze in-app purchases and subscriptions without managing servers or writing backend code.

Get Started

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

Reply to this topic…

You need to create an account or log in to reply.

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.