-1

For an App Playground in Xcode 26, usually created through File / New Project and then selecting iOS / App Playground, there does not seem to be a Resources folder for files to be accessed through Bundle.main.

This expectation comes from plain Playgrounds, since those have the aforementioned Resources folder to contain files to access through Bundle.main.

So for non-asset files (which could be added to the Assets Catalog, which does exist in an App Playground), like json files with model data, is there any possible or recommended way to add them to a App Playground to access in code?

After some hours of searching there seemed to be no obvious supported way to bundle resources into the App Playground target.

HangarRash
16.4k5 gold badges28 silver badges62 bronze badges
asked yesterday
1

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.