The “Get Started with Apps” in Playgrounds looks great but it won’t allow me to advance to the next activity. It seems to think that my solution is incorrect, but what I did matches the solution provided in the “hint.” This could be corrected by either allowing for more variety in the responses, or by allowing the user to advance to the next activity regardless of whether the response they provided was correct.
Swift Playground
RSS for tagLearn and explore coding in Swift through interactive learning experiences on the Swift Playground app for iPadOS and macOS.
Post
Replies
Boosts
Views
Activity
Hi,
I have a problem with making a swift playgrounds app walkthrough. I followed the steps exactly and modified my Package.swift a bit (in the targets section):
.executableTarget(name: "App", dependencies: ["Guide"], path: "App"),
.target(
name: "Guide",
path: "Guide",
resources: [
.process("Guide.tutorial"),
])
Now when I open the project in Playgrounds I get this error:
public headers ("include") directory path for 'Guide' is invalid or not contained in the target
Any help would be appreciated.
Thanks
Have downloaded playgrounds 4.3 to my iPad Air running ipados 16.5.
Trying to use playground “Get started with Apps” but receiving message “Unsupported file format Get Started with Apps.swiftpm cannot be opened in Swift Playgrounds”.
I do not have Mac or windows PC so am stuck! Help ??
Hi,
I want to learn SWIFT and started to use SWIFT Playgrounds 4.4 on iPad and MacBook Air. Unfortunately SWIFT Playgrounds unexpectedly crashes every 2nd to 3rd chapter I work on. I am currently trying to finish "Los gehts mit Code" and "Programmieren lernen 1".
Is the app really so buggy, that it randomly crashes on executing the starting chapters ?
I am trying to implement a ML model with Core ML in a playground for a Student Challenge project, but I can not get it to work. I have already tried everything I found online but nothing seems to work (the tutorials where posted long time ago). Anyone knows how to do this with Xcode 15 and the most recent updates?
I was expecting all of the code to run in main thread, but both task and async function is working in backfround thread. Any explanations?
I'm getting the following error when previewing my Swift Playground package:
Unrecognized platform name 'xrOS'; did you mean 'iOS'?
Anyone know how to silence this? I don't have xrOS anywhere in my code so I'm guessing this is something with Swift Playgrounds or with the compiler.
Hello All,
I happen to remove "Playgrounds" folder from my iCloud drive, and afterwards Playground is no longer functioning but repeatedly crashes.
It was okey before deletion, but now any operation to create or download playground then Playground App crashes all the time.
Issue not resolved even creating same name folder by manual,
Issue not resolved even re-install Playground - folder in iCloud will not created.
I guess I need to fully uninstall PlayGround completely, then start from scratch to let Playground App to hold init step to generate required folder in iCloud, but not sure how to do it.
Please give kind help if anyone knows about this issue, or if anyone knows complete deletion step of Playground.
Best wishes, tons of thanks in advance.
Best Regards,
Issey Hamada
Does anyone know of any documentation for the various directives in the guidebook?
Things like @GuideBook, @Guide, @Task, @SuccessMessage, etc.
Thanks,
David
In Swift-UI Playgrounds Learn to Code 2 under the Chapter "Variables" and the exercise "Checking for Equal Values", there is no instruction to use the predefined variable numberOfSwitches in the goal instruction.
I've noticed Playgrounds crashing a lot lately, both on iPad and Mac. I have many Macs, Intel & M1, and 2 iPads, 7th Gen and 10.5" Pro. It's noticeably sluggish at the best of times progressively getting worse the last few updates, but worse than that it is hard crashing, losing data in the process. Anyone else seeing this? Not the end of the world, I'm a dev and use Xcode for anything substantial but I like to use Playgrounds on the iPad sometimes when I want to pop a quick idea down. I also plan to start creating playgrounds to help kids get into programming, so hoping this useful app isn't being neglected.
My Mac is older one. I just started to learn Swift. I want to practice it. So I downloaded Xcode 14.2 for MacOS 12.7.4 (21H1123)
On tutorials, it is showing live result. But for me nothing is happening. It is blank.
How do I enable it?
is there a beta version of Swift Playgrounds that supports the latest iPadOS 18 SDK, or do i have to use XCode on Mac?
I was watching this presentation about swift. A Swift Tour: Explore Swift’s features and design
At timestamp 1:59, the presenter is using what looks sort of like swift playgrounds, however with a feature on the right hand side panel that is sort of like a REPL, and shows the value of an expression.
How can I enable this feature?
I am on the latest verison of Swift Playgrounds on macOS, and I cannot seem to find it.
Hi there, when I’m using Swift Playground app on my new M4 iPad pro software version 17.5.1 . Soon I’m running the code for the first time. It crashes the IPad and restart it. After it’s fine . Anyone else have the same issues ?
Is there any access to Swift Playgrounds on macOS12.3? On testflight or something?
Hi all!
I am using Swift Playgrounds 4.5.1 on Mac and iPad.
When I create new book, they both create new book with Swift 5.9 (instead of Swift 5.10).
Is this a bug? The release notes says since 4.5.0 the Swift version has been upgraded to 5.10.
Thanks
B
I am writing an app in Swift Playgrounds 4.5.1 on an iPad 8th generation running iPad OS 17.5.1. When I click the run button I get the error “MyGame Crashed. Update failed. The operation couldn't be completed. (BSActionErrorDomain error 1.) MyGame may have crashed.” It was working up until a few days ago but now it can’t even show the preview. I haven’t updated the app or software since and I can run other app playgrounds. I have multiple nested views with multiple lists of buttons using ForEach statements and I am sharing variables across views using ObservableObject using code like this:
class UserProgress: ObservableObject {
@Published var score = 0
}
struct InnerView: View {
@ObservedObject var progress: UserProgress
var body: some View {
Button("Increase Score") {
progress.score += 1
}
}
}
struct ContentView: View {
@StateObject var progress = UserProgress()
var body: some View {
VStack {
Text("Your score is \(progress.score)")
InnerView(progress: progress)
}
}
}
I created an app using Playgrounds and added a Package from GIt. When I try running the app it fails saying the it doesn't support dynamic libraries. So, my question is why did it allow me to add the package in the first place?
I am currently running MacOS 12.7.6 version and this is the last update on my machine, and swift playgrounds is not downloading in it, so I want its older version, I think I need Swift Playgrounds 4.1, so please give me a solution.
Thank you so much!