You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After making a new project from a template, building from Xcode (not carton dev) fails with the following error:
This error becomes annoying when I want to support Tokamak for my SwiftUI library.
To Reproduce
carton init --template tokamak
Build from Xcode
Expected behavior
Xcode build works properly, or
Have some way to optionally add Tokamak as dependency in library's Package.swift so that carton dev recognizes its condition but Xcode build won't. For example:
letpackage=/* My SwiftUI library */// Carton recognizes this condition but Xcode (or non-SwiftWasm `swift build`) won't.
if ProcessInfo.processInfo.environment["CARTON"]!=nil{
package.dependencies.append(.package(url:"https://github.com/TokamakUI/Tokamak", from:"0.10.0"))letindex= package.targets.firstIndex(where:{ $0.name =="MyLib"})
if let index = index {
package.targets[index].dependencies.append(.product(
name:"TokamakShim",
package:"Tokamak",
condition:.when(platforms:[.wasi])))}}
Desktop (please complete the following information):
OS: macOS 12.4
Version of Tokamak: 0.10.1
The text was updated successfully, but these errors were encountered:
Describe the bug
After making a new project from a template, building from Xcode (not
carton dev
) fails with the following error:This error becomes annoying when I want to support Tokamak for my SwiftUI library.
To Reproduce
carton init --template tokamak
Expected behavior
Package.swift
so thatcarton dev
recognizes its condition but Xcode build won't. For example:Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: