0

I was creating an app for the Apple Swift Student Challenge, and when I go to submit it I realized that it needs to be a swiftpm file. I made my app as an Xcode project, and can't find any way to export in the correct format. Is there a way to either export it in the correct format, or to move it into an Xcode playground/ Swift app playground. I looked but couldn't find any way to do either, and I can't just copy and paste the code over, as I have CoreData, and that couldn't be transfered.

I looked but couldn't find any way to do either, and I can't just copy and paste the code over, as I have CoreData and widgets, and those couldn't be transfered. Maybe there's a way to have placeholder CoreData? Also, it says Xcode playgrounds will be tested in the simulator, but I can't find a way to run the simulator from Xcode playgrounds, and in my quick attempt to transfer it over, even get a preview, so I thought maybe they will open it as a project? Idk, I just would like to know if there is a way to take an app made as an Xcode project and turn it into a swiftpm file. Thank You for any help!

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Feb 26 at 19:34

1 Answer 1

0

You need to attach the playground file and put it as a .zip, to do that go to the finder, look for your playground project and compress it. If you are developing it in xcode, move everything to playground.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.