Can someone help me with this please…
I have two apps which I have updated and have just tried uploading them to the Appstore.
This troubles me because I am paid up to date…
What is the best course of action for me to resolve this please?
Swift Playground
RSS for tagLearn and explore coding in Swift through interactive learning experiences on the Swift Playground app for iPadOS and macOS.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
When I go to the App Settings menu in Swift Playgrounds and attempt to upload to App Store Connect, I run into the below error screen:
I am registered with the Apple Developer Program.
Swift Playgrounds is updated to its latest version.
This is occurring on both macOS and iPadOS.
All the information I put in is valid.
Any reason why this would be happening?
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift
Swift Playground
App Store Connect
I am running Swift Playgrounds 4.51 under OSX 14.7 on a Mac mini M2 Pro.
Under App settings for my app, I select "Install on this Mac." I get an error "An error occurred during installation Please check Console.app for further information"
I can't find any entry in the console logs for this.
I have a personal (free) developer account.
Is there a way to create a Finder launchable app with Swift Playgrounds?
I found part of the problem. My main user that I use for "normal" activity does not have administrative rights. If I give that user administrative rights, the create app succeeds and the app is added to the global Applications folder.
Is there a way to have the app added to my User Application folder that then shouldn't require administrative access?
Thanks for the upgrade, the new project selection screen is nice and I’m happy that the SDK has been updated. But I notices some issues
Since update to 4.6
In an app project, if one of the file contains an error and I select another file. The error is not reported and the upper icon shows a checked mark as if the project contains no compilation errors.
Also, if I’m on the file that contains the error the upper icon turn in red (that is ok) but if I press the icon then the error message, the editor does not jump to the error
It was working fine on the previous version
(I use it on a iPad pro (A12Z) with the latest iPad OS version)
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
I use Swift Playgrounds on iPad to run an intro to programming class with high school students. I've created some custom playground books based on Apple's guides to provide some simple sandboxes to learn basic coding.
Students simply click a button on my website, which downloads my playground books so students can easily create new sandboxes.
With Swift Playgrounds 4.6.1 on both Mac and iPad, clicking the link only opens Swift Playgrounds and does not download my playground books! There used to be an "Add a Subscription URL" button, but it is no longer present on the Learn to Code page or anywhere else in the app that I can find:
Is it intentional that this functionality is removed? Playground Books still appear to work, and documentation for subscription feeds is still available.
I start another session with my students next Monday, so I need to know as soon as possible whether I need to plan to work around this myself.
Thanks,
Mark Schmidt
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Playground
Playground Support
Hey, meanwhile it's a great thing to program apps on the iPad and to be able to load them into the App Store Connect and the App Store.
What about localization in the meantime? When I open the folder en.lproj in sample apps from XCode, then there are two files stored in it:
Glossary.plist (XML) and
Localizable.strings (binary)
Is it correct that XCode creates binary files from the strings? Otherwise, Swift Playgrounds already offers localization in the localized learning content, but i guess the binary files can only be created in XCode?
Fatal Error in Swift Playground
Description
I'm experiencing a catastrophic error when importing Package Dependency in any Swift Playgrounds that has icon or name that caused the whole Playground won't work anymore with error messages below.
I'm current running macOS Sequoia 15.3 (24D60) and Swift Playgrounds 4.6.1. They're all up-to-date.
Reproduction
Open Swift Playgrounds and and create a new project.
Import a package dependency
https://github.com/simibac/ConfettiSwiftUI.git
Rename the project and add an icon
Then you should able the reproduce the problem. I strongly believed that this is a serious bug.
You'll find that Assets in the left column are disappeared and appeared Assets.xcassets, you're unable to reveal the Dependency in the column like the reference picture above. The whole Playground is destroyed now and unable to work anymore.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Packages
Swift
Swift Playground
Hello! I have asked this question in previous years, but I want to make sure I can be safe as each challenge could be different.
Are applicants for the Swift Student Challenge allowed to use the features and technologies involved with Metal/MetalKit? Last year, the answer was yes. I have seen a few people here and there use it with Swift and won.
I would like to know if we can use it for the 2025 challenge for this year as well.
Thanks! :)
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Student Challenge
Metal
MetalKit
I'm trying to add Assets.xcassets to a .swiftpm project, but I'm getting the warning:
⚠️ Ignoring duplicate build file in build source build phase
(Just to know, that is about developing in XCODE, in Swift Playgrounds does not appear it, even in this second being harder to setting up)
The problem is that there are no “Build Phases” in XCODE to remove duplicate files manually.
I've already tried adding the path of Assets.xcassets in the resources property of Package.swift, like:
.executableTarget(
name: "AppModule",
path: ".",
resources: [
.process("Assets.xcassets")
]
)
Even so, the warning persists. Does anyone know how to solve this? Is there any way to remove duplicate references or force a cleanup of the Swift Package Manager cache to fix it?
I appreciate any tips! 🙏🚀
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Student Challenge
Swift
Swift Playground
Xcode
Hi everyone,
I’ve been developing an app using Swift Playgrounds, and it was working fine in version 4.5.
However, after updating to Swift Playground 4.6, the app no longer runs.
After some testing, I found that the issue occurs when import AppIntent is included.
Here’s a simple example:
import SwiftUI
//import AppIntents // <- If this line is included, Preview and Run fail.
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
}
}
Has anyone else encountered this issue?
Thanks!
Hi, friends!
I have a Keynote file, in which I create design for macOS applications settings and system settings, that I use and which are installed on my Mac.
I like to record my settings so that every time I reinstall the system or an application I can open my file and set it up exactly the way I want. It's like a user manual, only it looks nice with Mac design elements. And I do it in a presentation (Keynote). I also use a Sketch for the design.
I want to turn all this into an app for myself, using Swift Playground.
Does anyone know how to, for example, add a macOS Dock icon from a Sketch to Swift Playground?
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
I am trying to complete the "Initializing Your Expert" lesson in the Swift Playground. Below I post just a snippet of the code that I wrote, since no matter how many lines of code I write, the turnLock() method has no effect whatsoever.
let expert = Expert()
/*Create a function that will move the Expert character forward
the specified number of tiles. This will make the program easier to code and less verbose.
*/
func moveExpert(tiles: Int) {
for tile in 1...tiles {
expert.moveForward()
}
}
/*Create a function to make the Expert do an about face, i.e.
orient itself in the opposite direction.
*/
func aboutFace() {
expert.turnRight()
expert.turnRight()
}
expert.turnLockUp()
The instructions give no information about this method, such as when or where it can and cannot be called. It states merely that calling it is supposed to "reveal the path between the platforms." I don't see multiple platforms in the 3D puzzle world, just one platform with different levels.
No "path between platforms" is ever shown when I call this method, regardless of the location of the Expert character. Why doesn't this method ever do anything at all?
Can anyone advise?
Thank you kindly.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
When running the code below in a playground file, it crashes with an LLDB RPC Server crash. The crash log is attached. If I put the code into a project, it runs fine.
lldb-rpc-server-2024-10-04-110747.txt
import Foundation
@objc protocol Speaker {
func speak()
@objc optional func tellJoke()
}
class Deb: Speaker {
func speak() {
print("Hello, I'm Deb!")
}
func tellJoke() {
print("What did Sushi A say to Sushi B?")
}
}
class Bryan: Speaker {
func speak() {
print("Yo, I'm Bryan!")
}
func tellJoke() {
print("What is the object oriented way to become wealthy?")
}
func writeTutorial() {
print("I'm on it!")
}
}
class Animal {}
class Dog: Animal, Speaker {
func speak() {
print("Woof!")
}
}
var speaker: Speaker = Bryan()
if speaker is Bryan {
print("Hi, I'm a Bryan")
}
speaker.speak()
//speaker.writeTutorial() //won't compile
(speaker as! Bryan).writeTutorial()
speaker = Deb()
speaker.speak()
speaker.tellJoke?()
speaker = Dog()
speaker.tellJoke?() //return nil
protocol MtgSimulatorDelegate {
func mtgSimulatorDidStart(sim: MtgSimulator, a: Speaker, b: Speaker)
func mtgSimulatorDidEnd(sim: MtgSimulator, a: Speaker, b: Speaker)
}
class LoggingMtgSimulator: MtgSimulatorDelegate {
func mtgSimulatorDidStart(sim: MtgSimulator, a: any Speaker, b: any Speaker) {
print("Meeting started")
}
func mtgSimulatorDidEnd(sim: MtgSimulator, a: any Speaker, b: any Speaker) {
print("Meeting ended")
}
}
class MtgSimulator: MtgSimulatorDelegate {
func mtgSimulatorDidStart(sim: MtgSimulator, a: any Speaker, b: any Speaker) {
print("the meeting started")
}
func mtgSimulatorDidEnd(sim: MtgSimulator, a: any Speaker, b: any Speaker) {
print("the meeting ended")
}
let a: Speaker
let b: Speaker
var delegate1: MtgSimulatorDelegate?
var delegate2: MtgSimulatorDelegate?
init(a: Speaker, b: Speaker) {
self.a = a
self.b = b
delegate1 = self
}
func simulate() {
print("Off to meeting....")
delegate1?.mtgSimulatorDidStart(sim: self, a: a, b: b)
delegate2?.mtgSimulatorDidStart(sim: self, a: a, b: b)
a.speak()
b.speak()
print("Leaving meeting...")
delegate1?.mtgSimulatorDidEnd(sim: self, a: a, b: b)
delegate2?.mtgSimulatorDidEnd(sim: self, a: a, b: b)
a.tellJoke?()
b.tellJoke?()
}
}//MtgSimulator
let sim = MtgSimulator(a: Deb(), b: Bryan())
sim.delegate2 = LoggingMtgSimulator()
sim.simulate()
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Hi apple I have been stuck for 2 days and it still does not work
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Playground
Playground Support
I updated my iPad to iOS 18, but when I went into Swift Playgrounds it only had the iOS 17 SDK.
Maybe it has to with the fact that I’m on an iPad 9th Gen and it doesn’t have the Apple intelligence features so it can’t run the AI features.
I’m just wondering if I will be getting the new SwiftUI features such as the new [TabBar](https://developer.apple.com/videos/play/wwdc2024/10147/) or [MeshGradients.](https://developer.apple.com/videos/play/wwdc2024/10151/?time=381)
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
While I am not new to programming, I am quite new to the Swift language. I am using the Swift Playground app on macOS 26 on an M1 MacBook Air.
I am on the lesson about types. Perhaps it's a silly question, but what is a portal? It is never described or pointed out where to find it in the puzzle world. Similarly, the instructions reference a "switch" object without ever defining what it is. I cannot write code to call methods or set properties on objects about which I have no useful information. Can anyone advise, please?
Thank you kindly.
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
I'm facing an issue with Swift Playgrounds and files created in Xcode 16. It seems that Swift Playgrounds does not support Swift 6, but even when I create files specifically with Swift 5, Swift Playgrounds still reports that the files are unsupported.
This creates a significant problem because macOS Sequoia does not allow me to revert to Xcode 15, which might have offered better compatibility. As it stands, I can't find a solution to work seamlessly between Xcode and Swift Playgrounds.
Has anyone else encountered this issue? Are there any workarounds or updates planned to address this compatibility gap? Any advice would be greatly appreciated!
Just downloaded the latest Swift Playground for Mac (4.6). The Welcome window does not let you scroll horizontally via mouse, trackpad, or other means, so you can only see the first two Learn to Code resources - similar for the App Gallery and Extend Your App sections.
I'm unable to rename my Swift Playground or add/change the app icon when I imported a package dependency after upgraded my Swift Playgrounds App to the newest version. Every time I tried to do that, the whole project will be destroyed and showed error message below.
I wonder if anyone have same experience with me or someone can tell me the solution, it terrifies me and I'm worried that I'll be unable to submit my project on time because of that.