stackotter / swift-bundler

An Xcodeproj-less tool for creating cross-platform Swift apps.

Home Page:https://swiftbundler.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Templates come without Bundler.toml

benjiwolff opened this issue · comments

Running the following command

swift bundler create Test --template MetalSwiftUI

results in a folder that does not contain a Bundler.toml (regardless of template choice).

As a result, doing

cd Test 
swift bundler run

yields the following error

error: Failed to read the configuration file at './Bundler.toml'. Are you sure that it exists?

MacOS 14.3 (23D56)
swift-bundler v2.0.5 (according to mint, even though the latest github release is v2.0.4)
templates: up-to-date and on branch v3 (843e25997646e75b4365cb3d0f8e5dc6f7ca94bd), works perfectly on the main branch

You need to install Swift Bundler from the main branch (with mint install stackotter/swift-bundler@main), the new updated templates only affect v3 (the templates version must match the swift bundler version).

Ah I see. I was confused by the discussion in #39. I thought that your change was supposed to be visible in the release version of swift-bundler (main branch I guess). Therefore I thought v3 templates were compatible with the swift-bundler main branch. 😅

Sorry, I phrased my previous comment poorly. The v3 templates are compatible with the latest main branch commit, just not with the latest release (which is still v2).

I can confirm, the issue is resolved after switching to the main branch of swift-bundler.