krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

App

04b2b1d914788057bcd20945b876847386eb8f65
moonrise/App/

Moonrise app

The Xcode project is generated from project.yml and not committed.

brew install xcodegen
cd App && xcodegen generate
open Moonrise.xcodeproj

Simulator: an iOS 26+ runtime is required. Push registration needs a signed build (team ZCNAX3VL9D); the APNs device token is logged under subsystem sh.krz.moonrise.

Backend: both configurations use https://moonrise-server.audit-labs.workers.dev (MOONRISE_API_URL in project.yml). For a local Worker, set it to http://localhost:8787 and regenerate.

Release

scripts/release-ios.sh

Run from a clean main. It regenerates the project, archives the iPhone app with its widgets and the Watch app, and uploads it to App Store Connect, signed through the Apple ID in Xcode. The version is MARKETING_VERSION in project.yml; the build number is git rev-list --count HEAD, so each build maps to a commit. MOONRISE_PUBLISH=0 exports the .ipa to .build/ios-release without uploading. The visionOS app is a separate product and is not uploaded.