Skip to content

Commit 74b23f7

Browse files
committed
update
1 parent d2edc06 commit 74b23f7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Intro | Positioning | Distances | Angles | Completed App
1414
For me, making a playground book was much harder than a regular Xcode project. Here's some tips that I picked up along the way.
1515

1616
### Development
17-
- Instead of dragging files into the project, create them locally (<kbd>Command</kbd> + <kbd>N</kbd>), them copy over the contents. Whenever I dragged in a file, I got a "There was a problem running this page" error.
17+
- Instead of dragging files into the project, create them locally (<kbd>Command</kbd> + <kbd>N</kbd>), then copy over the contents. Whenever I dragged in a file, I got a "There was a problem running this page" error.
1818
- Use ARKit instead of RealityKit. The camera preview works, but I was never able to see my objects in the scene.
1919
- Pre-compile ML models if possible. See [this article](https://heartbeat.fritz.ai/how-to-run-and-test-core-ml-models-in-swift-playgrounds-8e4b4f9cf676) for details.
2020
- To change the name of the playground, edit the `BuildSettings.xcconfig` file
@@ -41,7 +41,6 @@ Make sure the **Module** is set to `None` and **Inherit Module From Target** is
4141
<br>
4242

4343
### Debugging
44-
4544
- To avoid the "There was a problem running this page" error, **turn on Authoring Debug Mode in the Settings app**. This gives you the full stack trace! If only I knew this earlier... I was commenting out lines of code until the error went away, AirDropping to my iPad every time. Go upvote [their answer on Stack Overflow](https://stackoverflow.com/a/67076862/14351818) *now*.
4645
- You can get the playground page's current text, including the user-modified code, with `PlaygroundPage.current.text`. Put the below code in `viewDidLoad` to see what it is (for testing purposes).
4746
```
@@ -61,4 +60,11 @@ DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
6160
}
6261
```
6362

63+
### Get Help
64+
I probably wouldn't have finished if not for these.
65+
- [Swift Discord server](https://discord.gg/zemPCtxE)
66+
- [Apple Developer Forums](https://developer.apple.com/forums/)
67+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/swift)
68+
69+
6470

0 commit comments

Comments
 (0)