The trick is to develop an iOS ARKit application, and once that is working, convert it to a Swift playgroundbook.
The benefit of doing this is you can use the full power of Xcode:
- Use Xcode's editor to write your app.
- Use Xcode's specialized views to manage your Scenekit art assets.
- Use Xcode's debugger to debug your app.
- You can't use Interface builder (no storyboards or nibs).
- Open terminal
- cd to the "arkit2" directory.
- run
makePlayground.sh
This will create an "arkit.playgroundbook" in the ".." directory.
- Open Finder
- Open a Finder window and choose "Airplay" from the favorites menu.
- Turn on your iOS device.
- In a second or so it should appear in the "Airplay" Finder window.
- Locate your arkit.playgroundbook
- Drag-and-drop arkit.playgroundbook onto your iOS Device icon in the Airplay Finder window.
- This should transfer the playground book and automatically launch the Playground app on the iOS Device.