Create engaging content for Swift Playgrounds

RSS for tag

Discuss the WWDC22 Session Create engaging content for Swift Playgrounds

Posts under wwdc2022-110349 tag

5 Posts

Post

Replies

Boosts

Views

Activity

"public headers ("include") directory path for 'Guide' is invalid or not contained in the target" error
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
4
0
3.4k
Oct ’24
Swift Playgrounds .environmentObject error CreatureZoo()
Can someone please help me figure out how to fix this error message? I’m beginning to think it’s an error in the Playgrounds app since I feel like I have tried everything to fix it. The error happens when I click the Navigation Link “Make Creatures Dance”. Any help is much appreciated. The DancingCreatures View itself works just fine. It crashes when I try to link to DancingCreatures from the main ContentView page. Thanks, Swifter20
3
0
2.3k
Jan ’23
Adding a tutorial file results in an "explicitly declare as resources" error
Following the instructions in the Create engaging content for Swift Playgrounds video I am adding a tutorial (Walkthrough.tutorial) file to my app. But, I get an error when I open the app on my iPad because of the non-swift files. I am using Xcode 14.1. The app was created using: File>New>Project>Swift Playgrounds App
0
0
790
Nov ’22
"Could not display guide" message
I created a swiftpm project with Xcode Version 13.4.1 (13F100). I changed the target from the default created by Xcode to this:     targets: [         .executableTarget(             name: "App",             path: "App"         )     ] I also changed the package version to 5.6 to match the AboutMe Package file. I also created an App directory and moved all my files (bar the Package.swift file) to it, and I also created a Guide folder and created a Guide.tutorial file based on the example in the WWDC video. I've turned on Author Debugging Mode (this is on Swift Playgrounds on the Mac, I'll try later on Swift Playgrounds on the iPad), but I get no messages other than the "Could not display guide. Try reopening the current project..." I also get a build error that just says "Building failed" What am I missing?
2
0
2.6k
Sep ’22
"public headers ("include") directory path for 'Guide' is invalid or not contained in the target" error
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
Replies
4
Boosts
0
Views
3.4k
Activity
Oct ’24
Swift Playgrounds .environmentObject error CreatureZoo()
Can someone please help me figure out how to fix this error message? I’m beginning to think it’s an error in the Playgrounds app since I feel like I have tried everything to fix it. The error happens when I click the Navigation Link “Make Creatures Dance”. Any help is much appreciated. The DancingCreatures View itself works just fine. It crashes when I try to link to DancingCreatures from the main ContentView page. Thanks, Swifter20
Replies
3
Boosts
0
Views
2.3k
Activity
Jan ’23
Adding a tutorial file results in an "explicitly declare as resources" error
Following the instructions in the Create engaging content for Swift Playgrounds video I am adding a tutorial (Walkthrough.tutorial) file to my app. But, I get an error when I open the app on my iPad because of the non-swift files. I am using Xcode 14.1. The app was created using: File>New>Project>Swift Playgrounds App
Replies
0
Boosts
0
Views
790
Activity
Nov ’22
"Could not display guide" message
I created a swiftpm project with Xcode Version 13.4.1 (13F100). I changed the target from the default created by Xcode to this:     targets: [         .executableTarget(             name: "App",             path: "App"         )     ] I also changed the package version to 5.6 to match the AboutMe Package file. I also created an App directory and moved all my files (bar the Package.swift file) to it, and I also created a Guide folder and created a Guide.tutorial file based on the example in the WWDC video. I've turned on Author Debugging Mode (this is on Swift Playgrounds on the Mac, I'll try later on Swift Playgrounds on the iPad), but I get no messages other than the "Could not display guide. Try reopening the current project..." I also get a build error that just says "Building failed" What am I missing?
Replies
2
Boosts
0
Views
2.6k
Activity
Sep ’22
Creating Guides
Hi, I am not able to see the swiftpm as folder to create the Guides, neither I can see package.swift file. I am using Swift 5.6
Replies
0
Boosts
0
Views
664
Activity
Aug ’22