Skip to content

Template for an iOS SwiftUI application built using Bazel.

License

Notifications You must be signed in to change notification settings

mattrobmattrob/bazel-ios-swiftui-template

Repository files navigation

SwiftUI iOS App with Bazel

This is an iOS application written in SwiftUI and built via Bazel. This is a starting place similar to creating a new project in Xcode and choosing SwiftUI as the starting place.

Getting Started

Install Bazelisk via brew install bazelisk. bazel & bazelisk will now use the .bazelversion file to download and run the chosen Bazel version.

Generate/Open Project

$ bazel run :xcodeproj
$ open App.xcodeproj

Build Application (CLI)

$ bazel build //app

Run All Tests (CLI)

$ bazel test $(bazel query 'kind(ios_unit_test,//...)')

Underlying Tools

Making It Your Own

tools/shared.bzl contains a handful of definitions to define the name of the application, bundle identifier, and similar things. Update these values to change the application's name.