Add Playground App to Homescreen

I would like to know if I can add a app I have made in swift playgrounds on the homescreen. I know this is unlikely but is there a work around by adding a shortcut to the homescreen that opens straight to the app I made?

If I need to clarify let me know!

Replies

I have had this problem too, so here is the solution.

First, make sure that your Swift Playgrounds project is saved, and you have made a designated icon for it and a name.

Open the Shortcuts app.

Click the + button (top right-hand corner)

On the screen that pops up, search for “Open App”. Click on it and it will add it to the project.

Click the empty “App” button and scroll down or search for your Swift Playgrounds app. Click it.

Next, search for the action “Stop this Shortcut” and click it (Adds to project).

Then click the Share button, then “Add to Home Screen”.

If you have the image file for the icon of your Swift app, then just click the smaller icon on the Add to Home Screen page and then choose what to pick from.

If not, you can go back and click the down arrow (next to the name of the Shortcut), and then “Choose Icon”.

After you do that, don’t forget to rename the Shortcut to the name of your app.

There you go! If you have any questions, you can just reply to this post.

  • It keeps saying ‘Open App failed because the app could not be opened’, although it runs fine when I run from the ide

Add a Comment

I must be missing something. When I create an app in Swift Playgrounds 4.2.1 on iPadOS 16.2, assign a designated icon and name to the app, and then create a shortcut to launch the app, I get the error “Open App failed because the app could not be opened.”

Does the app need to be submitted to App Store Connect or at least have a valid bundle identifier assigned for this to work?

What else could I be missing?

I am having the same problem!

Same Problem. Does it mean it can't be done or does somebody have a solution?