Swift Playground

RSS for tag

Learn and explore coding in Swift through interactive learning experiences on the Swift Playground app for iPadOS and macOS.

Swift Playground Documentation

Posts under Swift Playground subtopic

Post

Replies

Boosts

Views

Activity

Swift Playgrounds iPad: Duplicate filename error after renaming files, underlying filename out of sync
I encountered a persistent bug on Swift Playgrounds for iPad. After renaming Swift files in the editor, the displayed file name does not synchronize with the underlying system filename. This triggers a compile error stating the same filename is used twice, even though I have renamed them visibly in the sidebar. I have already submitted this issue via the Feedback app. The feedback case remains open with no response so far. Feedback ID: FB25396601 Case title: Swift Playgrounds iPad 文件重命名后底层文件名不同步,出现文件名重复报错 This error blocks my project compilation completely. I would appreciate any help or workaround.
0
0
27
1d
Swift Playground New File & Folder Not Able to Rename
Hi, I encountered an issue after the latest update on Swift Playground. I’m using the iPad Pro 3rd Gen, first time reporting a bug hopefully I’m on the right platform. When I create a new Swift file or folder, it’ll auto revert the file/folder name to the default naming upon creation. Tested this one on a few existing projects, it’s the same for all of them. Initially when I created a new project to verify, those files/folders can be renamed without the issue of reverting. But after testing it again, seems like the same issue is happening to it as well. I‘ve tried restarting my iPad but the problem persists. So I thought to report it and from my search seems like this is the platform for it? Thanks.
2
1
770
1d
iPad swift playground error
I keep getting the following error shown below when trying to run the "The Get Started with Apps" playground in Swift Playground (version 4.7) on my iPad (iPadOS 27.2.1): Get Started with Apps Crashed Prewarm failed You don't have permission to save the file "CurrentUser.txt" in the folder "Documents". To view or change permissions, select the item in the Finder and choose File > Get Info. I can't access finder in ios and haven't been able to identify the CurrentUser.txt in my system and so I'm not sure how to resolve the issue.
3
0
135
4d
Swift Playground on iPadOS 27
Hello, Since I upgraded my iPad (iPad Pro 11" 2nd generation / A12z) to iPadOS 27 I have the following issue with SwiftPlayground. The preview no longer works and gets stuck on "Preview paused / Restart to continue". If I click on the refresh button, the button becomes disabled a few seconds but preview still remains on "Preview paused". It is quite easy to reproduce : Start SwiftPlayground Click "New playground" Click "App" When "My App n" appears on playground browser click on it I already tried to uninstall / reinstall SwiftPlayground and rebooting my iPad but it didn't help. Thanks for any help
21
4
1.8k
5d
Swift Playgrounds crashes on iPad – “Prewarm failed”
Hello, I have a problem with Swift Playgrounds on my iPad A16 running iPadOS 27.2. When opening the lesson “Get Started with Apps”, I get this error: Prewarm failed It says that I don't have permission to save CurrentUser.txt in the Documents folder. The error suggests changing permissions using Finder, but Finder is not available on iPad. The same problem occurs when creating a new app. The app preview (normally showing “Hello, world!”) remains blank. I have already reinstalled Swift Playgrounds, completely reset my iPad and restored it. Apple Support also tried to help remotely, but the problem remains. Is this a known bug in Swift Playgrounds or iPadOS? How can I fix it? Thank you!
2
0
142
6d
Swift Playground Startup Bug
Hey, I'm having an issue with Swift Playgrounds. On the initial project selection screen, I can't select the project at the very top. It seems to be covered by some kind of blurry overlay. Here's a screenshot showing what I mean: I have already tried to reinstall it, but same problem. Im using Version 4.7 (2088). Thanks in advance for your help! ☺️
3
0
248
1w
Creating playgrounds from a template does nothing
Attempts to create Swift Playgrounds from the built-in templates fail. Clicking the “Get” button on these templates appears to download something, but it changes back into a “Get” button afterwards without creating a playground. Furthermore, the Swift versions of the templates seem to be behind; it shows Swift 5.8 and Swift 5.9 editions whereas it should be Swift 6.x Steps to Reproduce Start the Swift Playground app (the standalone app, not the Xcode one, on macOS or iPadOS). Select “Learn to Code” Choose the “Get Started With Code” template (or any other template will do). Click the Get button. Wait until the Get button becomes a circular progress indicator. Expected Results A new Swift Playground should be created from the selected template. Actual Results The Get button changes into a circular progress indicator and then changes back. No Playground gets created. Versions Swift Playground 4.7 (2088) macOS 26.4.1 (25E253) iPadOS 26.4.2
3
1
1.5k
3w
Virtual keyboard in preview
Hello, When I click in the box to write a text (in preview) the virtual keyboard does not appear. On the other hand, when I want to write my script, the keyboard appears well. This one works perfectly in all my applications on the iPad. I could read on the internet that this would come from a problem with the Swift Playground application. I uninstalled and then reinstalled the application but the problem is still present. Thanks
2
0
175
4w
I can't write on Run view on Swift Playground
Hi there! I'm pretty new in coding. Right now I'm just vibe coding, trying to understand what happens and how does this works. I made a simple app in Swift Playground on my iPad Mini A17 Pro, and everything works good so far when I tap the Play (Run) button, except text input: every text field only shows the blinking cursor and let me paste, but the virtual keyboard don't appear, and even connecting a physical keyboard has no better outcome. What am I doing wrong? Thanks.
4
1
599
Oct ’26
"FailedToEvaluateManifest" Error in Swift Playgrounds
I keep encountering a persistent build error in the App tutorial within Swift Playgrounds. The exact error messages shown in the app are: ⛔️ Failed to load. Failed to load due to an error. ⛔️ FailedToEvaluateManifest(description: "Build failed because a Mach-O file could not be generated.") ⛔️ Failed to load. I have taken every possible troubleshooting step on my end, including: Restarting my Mac Updating macOS to the latest version Updating Swift Playgrounds Completely uninstalling and reinstalling Swift Playgrounds Re-downloading and reinstalling the app tutorial within the app Despite all these efforts, the issue has not been resolved at all and I am unable to proceed with the tutorial. Could you please provide guidance on how to fix this or let me know if this is a known bug? I have attached screenshots of the error for your reference.
1
0
104
Oct ’26
Swift Playgrounds on iPad: “Failed to Fetch Teams — Your session has expired” blocks App Store Connect upload
Hi everyone, I’m unable to select my developer team or upload my app to App Store Connect from Swift Playgrounds on my iPad. Both of these actions produce the same error: Open the app project → Team & Bundle Identifier → Team. Select Upload to App Store Connect. The error reads: “Failed to Fetch Teams Your session has expired. Please log in.” No team appears for me to select, so I cannot proceed with uploading the app. My account status: Apple Developer Program membership is active. Paid Apps Agreement is Active. Bank account is Active. I can sign in to App Store Connect through a browser. Activating the Paid Apps Agreement and banking information did not resolve the error. I reported this to Apple Developer Support on September 15 and provided a screen recording showing both failures. A Senior Advisor has now recommended asking in this forum. Has anyone encountered this exact error and resolved it? Is there a specific way to refresh the developer-account session used by Swift Playgrounds, or any diagnostic information I can collect to identify the cause? Thank you.
1
0
411
Oct ’26
“Keep Going with Apps” Tutorial section will not complete.
Hello All, I am currently working through ”Keep going with Apps” in Swift Playground. The section in the tutorial “Add a DancingCreature view” will not complete. I have tried to type it is as written in the tutorial and even used the copy and paste button provided. I have restarted the app and my IPad with no success. I have attached a screen shot of the tutorial prompt. Here is the code block: import SwiftUI import Guide struct DancingCreatures: View { //#-learning-code-snippet(varDeclaration) @EnvironmentObject var data : CreatureZoo var body: some View { SPCAssessableGroup(view: self) { VStack { ZStack { /*#-code-walkthrough(dance.forEach)*/ ForEach(data.creatures) { creature in /*#-code-walkthrough(dance.forEach)*/ /*#-code-walkthrough(dance.textView)*/ Text(creature.emoji) .resizableFont() .offset(creature.offset) .rotationEffect(creature.rotation) /*#-code-walkthrough(dance.textView)*/ } } ZStack { /*#-code-walkthrough(dance.forEach)*/ ForEach(data.creatures) { creature in /*#-code-walkthrough(dance.forEach)*/ /*#-code-walkthrough(dance.textView)*/ Text(creature.emoji) .resizableFont() .offset(creature.offset) .rotationEffect(creature.rotation) /*#-code-walkthrough(dance.textView)*/ //#-learning-code-snippet(exp1) //#-learning-code-snippet(animationSolution) //#-learning-code-snippet(exp3) } } /*#-code-walkthrough(dance.onTap)*/ .onTapGesture { data.randomizeOffsets() } /*#-code-walkthrough(dance.onTap)*/ /*#-code-walkthrough(dance.onTap)*/ .onTapGesture { data.randomizeOffsets() } /*#-code-walkthrough(dance.onTap)*/ } } } } struct DancingCreatures_Previews: PreviewProvider { static var previews: some View { DancingCreatures().environmentObject(CreatureZoo()) } } Device information: IPad Pro (11 inch, 2nd gen) iPad OS Version: 26.0.1 Playground Version: 4.6.4 Anyone else come across this? Thank you in advance.
8
6
2.1k
Jun ’26
Community-driven index site for Swift playgrounds
Hey everyone! I wanted to share a small project I’ve been working on called Swiftgrounds: https://swiftgrounds.dev It’s a community-driven index for Swift Playground books and apps. This is my attempt to bring an option for creators to reach learners and share their content. Swiftgrounds supports the same JSON feed format Apple originally designed, so if you already have a feed set up, you can plug it in without making any changes. If you’re building Playground content, I’d love for you to give it a try and share your work there. Hope you like the project!
0
2
1.3k
May ’26
AUV3 effects in Swift Playground iPad - info.plist
Hi everyon. I‘d like to ask If there’s a way of including info.plist into swift playground on the iPad. I’m currently developing a daw on the iPad, I can see and use Apple’s auv3 plugins but can’t see third party apps like fab filter etc installed on the iPad. I think it’s needs inter app or auv3 entitlement. Is there a work around? I have attached my code for auv3 section. if anyone is interested , here is a video of my progress so far https://youtu.be/_2-L3oowfd0?si=cbr_9vYc3DOXV3R1 AUV3Diagnostic.swift
1
0
1.5k
May ’26
CLLocationManager permission prompt never appears in Swift Playground
I am building a Swift Playgrounds App project on iPad running iPadOS 26.0.1 using the latest version of Swift Playgrounds. I need to access Core Location for a plant location logging app. What I have done: • Created an App project (not a Playground) in Swift Playgrounds • Enabled ‘Core Location When in Use’ in the app capabilities (accessed by tapping the app name) • Implemented a CLLocationManager with CLLocationManagerDelegate • Called manager.requestWhenInUseAuthorization() from .onAppear in a SwiftUI view • Called manager.startUpdatingLocation() immediately after The problem: The location permission prompt never appears when the app runs. The app does not appear in Settings → Privacy & Security → Location Services at all. There are no error messages or crashes — the app simply never requests location access. What I have ruled out: • The capability IS enabled in Swift Playgrounds app settings • The app runs without errors otherwise • This is an App project, not a classic Playground, so it should support capabilities Questions: 1. Is CLLocationManager with requestWhenInUseAuthorization() supported in Swift Playgrounds App projects on iPadOS 26? 2. Has the location authorization API changed in iPadOS 26 in a way that affects Swift Playgrounds? 3. Is there a working code example for Core Location in a Swift Playgrounds App project on iPadOS 26? Any guidance would be greatly appreciated.
3
0
1.1k
May ’26
LLDB RPC server crashes when running top-level async code in Playground files
When running top-level async code in Swift Playgrounds, the LLDB RPC server crashes. For example, when running the following code from Concurrency section of The Swift Programming Language book: func fetchUserID(from server: String) async -> Int { if server == "primary" { return 97 } return 501 } let userIDs = await withTaskGroup(of: Int.self) { group in for server in ["primary", "secondary", "development"] { group.addTask { return await fetchUserID(from: server) } } var results: [Int] = [] for await result in group { results.append(result) } return results } print(userIDs) Xcode reports that the LLDB RPC server has crashed. The Swift Playground app reports “There was a problem running this playground.” However, in the case of the Swift Playground app, results are populated as expected. For example, the console shows “[97, 501, 501]”. Xcode does not print any results in the console. Tested with Xcode 26.4 (17E192) and Swift Playground Version 4.7 (2088). Wrapping the async code in a Task {} resolves the issue. Running this code in a standalone Swift file produces the expected result without an error. FB22416465 From the analytics report, attached in the feedback report, but in case it helps others identify the same issue in their crashes: Triggered by Thread: 26 RPC packet thread for client tid 013af238 (20640312) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000005a8 Exception Codes: 0x0000000000000001, 0x00000000000005a8 Termination Reason: Namespace SIGNAL, Code 11, Segmentation fault: 11 Terminating Process: exc handler [64943] VM Region Info: 0x5a8 is not in any region. Bytes before following region: 4296211032 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100130000-1003b8000 [ 2592K] r-x/r-x SM=COW /Applications/Xcode-26.4.0-Release.Candidate.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server
1
0
1.7k
Apr ’26
Swift Playgrounds iPad: Duplicate filename error after renaming files, underlying filename out of sync
I encountered a persistent bug on Swift Playgrounds for iPad. After renaming Swift files in the editor, the displayed file name does not synchronize with the underlying system filename. This triggers a compile error stating the same filename is used twice, even though I have renamed them visibly in the sidebar. I have already submitted this issue via the Feedback app. The feedback case remains open with no response so far. Feedback ID: FB25396601 Case title: Swift Playgrounds iPad 文件重命名后底层文件名不同步,出现文件名重复报错 This error blocks my project compilation completely. I would appreciate any help or workaround.
Replies
0
Boosts
0
Views
27
Activity
1d
Swift Playground New File & Folder Not Able to Rename
Hi, I encountered an issue after the latest update on Swift Playground. I’m using the iPad Pro 3rd Gen, first time reporting a bug hopefully I’m on the right platform. When I create a new Swift file or folder, it’ll auto revert the file/folder name to the default naming upon creation. Tested this one on a few existing projects, it’s the same for all of them. Initially when I created a new project to verify, those files/folders can be renamed without the issue of reverting. But after testing it again, seems like the same issue is happening to it as well. I‘ve tried restarting my iPad but the problem persists. So I thought to report it and from my search seems like this is the platform for it? Thanks.
Replies
2
Boosts
1
Views
770
Activity
1d
iPad swift playground error
I keep getting the following error shown below when trying to run the "The Get Started with Apps" playground in Swift Playground (version 4.7) on my iPad (iPadOS 27.2.1): Get Started with Apps Crashed Prewarm failed You don't have permission to save the file "CurrentUser.txt" in the folder "Documents". To view or change permissions, select the item in the Finder and choose File > Get Info. I can't access finder in ios and haven't been able to identify the CurrentUser.txt in my system and so I'm not sure how to resolve the issue.
Replies
3
Boosts
0
Views
135
Activity
4d
Swift Playground on iPadOS 27
Hello, Since I upgraded my iPad (iPad Pro 11" 2nd generation / A12z) to iPadOS 27 I have the following issue with SwiftPlayground. The preview no longer works and gets stuck on "Preview paused / Restart to continue". If I click on the refresh button, the button becomes disabled a few seconds but preview still remains on "Preview paused". It is quite easy to reproduce : Start SwiftPlayground Click "New playground" Click "App" When "My App n" appears on playground browser click on it I already tried to uninstall / reinstall SwiftPlayground and rebooting my iPad but it didn't help. Thanks for any help
Replies
21
Boosts
4
Views
1.8k
Activity
5d
Swift Playgrounds crashes on iPad – “Prewarm failed”
Hello, I have a problem with Swift Playgrounds on my iPad A16 running iPadOS 27.2. When opening the lesson “Get Started with Apps”, I get this error: Prewarm failed It says that I don't have permission to save CurrentUser.txt in the Documents folder. The error suggests changing permissions using Finder, but Finder is not available on iPad. The same problem occurs when creating a new app. The app preview (normally showing “Hello, world!”) remains blank. I have already reinstalled Swift Playgrounds, completely reset my iPad and restored it. Apple Support also tried to help remotely, but the problem remains. Is this a known bug in Swift Playgrounds or iPadOS? How can I fix it? Thank you!
Replies
2
Boosts
0
Views
142
Activity
6d
Swift Playground Startup Bug
Hey, I'm having an issue with Swift Playgrounds. On the initial project selection screen, I can't select the project at the very top. It seems to be covered by some kind of blurry overlay. Here's a screenshot showing what I mean: I have already tried to reinstall it, but same problem. Im using Version 4.7 (2088). Thanks in advance for your help! ☺️
Replies
3
Boosts
0
Views
248
Activity
1w
Creating playgrounds from a template does nothing
Attempts to create Swift Playgrounds from the built-in templates fail. Clicking the “Get” button on these templates appears to download something, but it changes back into a “Get” button afterwards without creating a playground. Furthermore, the Swift versions of the templates seem to be behind; it shows Swift 5.8 and Swift 5.9 editions whereas it should be Swift 6.x Steps to Reproduce Start the Swift Playground app (the standalone app, not the Xcode one, on macOS or iPadOS). Select “Learn to Code” Choose the “Get Started With Code” template (or any other template will do). Click the Get button. Wait until the Get button becomes a circular progress indicator. Expected Results A new Swift Playground should be created from the selected template. Actual Results The Get button changes into a circular progress indicator and then changes back. No Playground gets created. Versions Swift Playground 4.7 (2088) macOS 26.4.1 (25E253) iPadOS 26.4.2
Replies
3
Boosts
1
Views
1.5k
Activity
3w
Virtual keyboard in preview
Hello, When I click in the box to write a text (in preview) the virtual keyboard does not appear. On the other hand, when I want to write my script, the keyboard appears well. This one works perfectly in all my applications on the iPad. I could read on the internet that this would come from a problem with the Swift Playground application. I uninstalled and then reinstalled the application but the problem is still present. Thanks
Replies
2
Boosts
0
Views
175
Activity
4w
I can't write on Run view on Swift Playground
Hi there! I'm pretty new in coding. Right now I'm just vibe coding, trying to understand what happens and how does this works. I made a simple app in Swift Playground on my iPad Mini A17 Pro, and everything works good so far when I tap the Play (Run) button, except text input: every text field only shows the blinking cursor and let me paste, but the virtual keyboard don't appear, and even connecting a physical keyboard has no better outcome. What am I doing wrong? Thanks.
Replies
4
Boosts
1
Views
599
Activity
Oct ’26
"FailedToEvaluateManifest" Error in Swift Playgrounds
I keep encountering a persistent build error in the App tutorial within Swift Playgrounds. The exact error messages shown in the app are: ⛔️ Failed to load. Failed to load due to an error. ⛔️ FailedToEvaluateManifest(description: "Build failed because a Mach-O file could not be generated.") ⛔️ Failed to load. I have taken every possible troubleshooting step on my end, including: Restarting my Mac Updating macOS to the latest version Updating Swift Playgrounds Completely uninstalling and reinstalling Swift Playgrounds Re-downloading and reinstalling the app tutorial within the app Despite all these efforts, the issue has not been resolved at all and I am unable to proceed with the tutorial. Could you please provide guidance on how to fix this or let me know if this is a known bug? I have attached screenshots of the error for your reference.
Replies
1
Boosts
0
Views
104
Activity
Oct ’26
Swift Playgrounds on iPad: “Failed to Fetch Teams — Your session has expired” blocks App Store Connect upload
Hi everyone, I’m unable to select my developer team or upload my app to App Store Connect from Swift Playgrounds on my iPad. Both of these actions produce the same error: Open the app project → Team & Bundle Identifier → Team. Select Upload to App Store Connect. The error reads: “Failed to Fetch Teams Your session has expired. Please log in.” No team appears for me to select, so I cannot proceed with uploading the app. My account status: Apple Developer Program membership is active. Paid Apps Agreement is Active. Bank account is Active. I can sign in to App Store Connect through a browser. Activating the Paid Apps Agreement and banking information did not resolve the error. I reported this to Apple Developer Support on September 15 and provided a screen recording showing both failures. A Senior Advisor has now recommended asking in this forum. Has anyone encountered this exact error and resolved it? Is there a specific way to refresh the developer-account session used by Swift Playgrounds, or any diagnostic information I can collect to identify the cause? Thank you.
Replies
1
Boosts
0
Views
411
Activity
Oct ’26
“Keep Going with Apps” Tutorial section will not complete.
Hello All, I am currently working through ”Keep going with Apps” in Swift Playground. The section in the tutorial “Add a DancingCreature view” will not complete. I have tried to type it is as written in the tutorial and even used the copy and paste button provided. I have restarted the app and my IPad with no success. I have attached a screen shot of the tutorial prompt. Here is the code block: import SwiftUI import Guide struct DancingCreatures: View { //#-learning-code-snippet(varDeclaration) @EnvironmentObject var data : CreatureZoo var body: some View { SPCAssessableGroup(view: self) { VStack { ZStack { /*#-code-walkthrough(dance.forEach)*/ ForEach(data.creatures) { creature in /*#-code-walkthrough(dance.forEach)*/ /*#-code-walkthrough(dance.textView)*/ Text(creature.emoji) .resizableFont() .offset(creature.offset) .rotationEffect(creature.rotation) /*#-code-walkthrough(dance.textView)*/ } } ZStack { /*#-code-walkthrough(dance.forEach)*/ ForEach(data.creatures) { creature in /*#-code-walkthrough(dance.forEach)*/ /*#-code-walkthrough(dance.textView)*/ Text(creature.emoji) .resizableFont() .offset(creature.offset) .rotationEffect(creature.rotation) /*#-code-walkthrough(dance.textView)*/ //#-learning-code-snippet(exp1) //#-learning-code-snippet(animationSolution) //#-learning-code-snippet(exp3) } } /*#-code-walkthrough(dance.onTap)*/ .onTapGesture { data.randomizeOffsets() } /*#-code-walkthrough(dance.onTap)*/ /*#-code-walkthrough(dance.onTap)*/ .onTapGesture { data.randomizeOffsets() } /*#-code-walkthrough(dance.onTap)*/ } } } } struct DancingCreatures_Previews: PreviewProvider { static var previews: some View { DancingCreatures().environmentObject(CreatureZoo()) } } Device information: IPad Pro (11 inch, 2nd gen) iPad OS Version: 26.0.1 Playground Version: 4.6.4 Anyone else come across this? Thank you in advance.
Replies
8
Boosts
6
Views
2.1k
Activity
Jun ’26
Community-driven index site for Swift playgrounds
Hey everyone! I wanted to share a small project I’ve been working on called Swiftgrounds: https://swiftgrounds.dev It’s a community-driven index for Swift Playground books and apps. This is my attempt to bring an option for creators to reach learners and share their content. Swiftgrounds supports the same JSON feed format Apple originally designed, so if you already have a feed set up, you can plug it in without making any changes. If you’re building Playground content, I’d love for you to give it a try and share your work there. Hope you like the project!
Replies
0
Boosts
2
Views
1.3k
Activity
May ’26
AUV3 effects in Swift Playground iPad - info.plist
Hi everyon. I‘d like to ask If there’s a way of including info.plist into swift playground on the iPad. I’m currently developing a daw on the iPad, I can see and use Apple’s auv3 plugins but can’t see third party apps like fab filter etc installed on the iPad. I think it’s needs inter app or auv3 entitlement. Is there a work around? I have attached my code for auv3 section. if anyone is interested , here is a video of my progress so far https://youtu.be/_2-L3oowfd0?si=cbr_9vYc3DOXV3R1 AUV3Diagnostic.swift
Replies
1
Boosts
0
Views
1.5k
Activity
May ’26
CLLocationManager permission prompt never appears in Swift Playground
I am building a Swift Playgrounds App project on iPad running iPadOS 26.0.1 using the latest version of Swift Playgrounds. I need to access Core Location for a plant location logging app. What I have done: • Created an App project (not a Playground) in Swift Playgrounds • Enabled ‘Core Location When in Use’ in the app capabilities (accessed by tapping the app name) • Implemented a CLLocationManager with CLLocationManagerDelegate • Called manager.requestWhenInUseAuthorization() from .onAppear in a SwiftUI view • Called manager.startUpdatingLocation() immediately after The problem: The location permission prompt never appears when the app runs. The app does not appear in Settings → Privacy & Security → Location Services at all. There are no error messages or crashes — the app simply never requests location access. What I have ruled out: • The capability IS enabled in Swift Playgrounds app settings • The app runs without errors otherwise • This is an App project, not a classic Playground, so it should support capabilities Questions: 1. Is CLLocationManager with requestWhenInUseAuthorization() supported in Swift Playgrounds App projects on iPadOS 26? 2. Has the location authorization API changed in iPadOS 26 in a way that affects Swift Playgrounds? 3. Is there a working code example for Core Location in a Swift Playgrounds App project on iPadOS 26? Any guidance would be greatly appreciated.
Replies
3
Boosts
0
Views
1.1k
Activity
May ’26
LLDB RPC server crashes when running top-level async code in Playground files
When running top-level async code in Swift Playgrounds, the LLDB RPC server crashes. For example, when running the following code from Concurrency section of The Swift Programming Language book: func fetchUserID(from server: String) async -> Int { if server == "primary" { return 97 } return 501 } let userIDs = await withTaskGroup(of: Int.self) { group in for server in ["primary", "secondary", "development"] { group.addTask { return await fetchUserID(from: server) } } var results: [Int] = [] for await result in group { results.append(result) } return results } print(userIDs) Xcode reports that the LLDB RPC server has crashed. The Swift Playground app reports “There was a problem running this playground.” However, in the case of the Swift Playground app, results are populated as expected. For example, the console shows “[97, 501, 501]”. Xcode does not print any results in the console. Tested with Xcode 26.4 (17E192) and Swift Playground Version 4.7 (2088). Wrapping the async code in a Task {} resolves the issue. Running this code in a standalone Swift file produces the expected result without an error. FB22416465 From the analytics report, attached in the feedback report, but in case it helps others identify the same issue in their crashes: Triggered by Thread: 26 RPC packet thread for client tid 013af238 (20640312) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000005a8 Exception Codes: 0x0000000000000001, 0x00000000000005a8 Termination Reason: Namespace SIGNAL, Code 11, Segmentation fault: 11 Terminating Process: exc handler [64943] VM Region Info: 0x5a8 is not in any region. Bytes before following region: 4296211032 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100130000-1003b8000 [ 2592K] r-x/r-x SM=COW /Applications/Xcode-26.4.0-Release.Candidate.app/Contents/SharedFrameworks/LLDBRPC.framework/Versions/A/Resources/lldb-rpc-server
Replies
1
Boosts
0
Views
1.7k
Activity
Apr ’26