A custom Xcode project template to get started with Turbo Native development.
Once installed, this template can be used directly in Xcode to generate a new Turbo Native project. It removes boilerplate around creating new Xcode projects and integrating with Turbo Native.
Note: This project is an experiment with frequent, breaking changes as I learn how Xcode templates work.
First, make sure you have Xcode downloaded and installed from the App Store.
Create a new directory for custom Xcode project templates. Then clone this repo into that directory.
export DIR=~/Library/Developer/Xcode/Templates/Custom\ Templates
mkdir -p $DIR
git clone https://github.com/joemasilotti/TurboNativeXcodeTemplate.git $DIR/Turbo\ Native\ App.xctemplate
Open Xcode and create a new project via File → New → Project…
Select iOS from the tabs across the top and scroll to the bottom.
Select Turbo Native App, click Next, enter the name of your app, and click Next again.
You might also need to add an organization identifier if you aren't signed in to an App Store Connect team in Xcode.
Unfortunately, Xcode project templates don't directly support Swift packages. So we have to add it manually.
- Click File → Add Packages…
- In the search box in the upper right, enter:
https://github.com/hotwired/turbo-ios
- Click Add Package
- Click Add Package, again
Run the app via Product → Run. If all went well it should launch in the simulator!
For the best experience, start a Rails server with Turbo.js enabled on port 3000.