Use fixed Textual fork that points to fixed SwiftUIMath. The crash occurs in packaged .app bundles when Bundle.module tries to locate resources at paths that don't match SwiftPM's expectations. The fix replaces direct Bundle.module usage with a safe alternative that checks multiple locations for resource bundles. Fixes #1451
58 lines
1.8 KiB
Swift
58 lines
1.8 KiB
Swift
// swift-tools-version: 6.2
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "ClawdbotKit",
|
|
platforms: [
|
|
.iOS(.v18),
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(name: "ClawdbotProtocol", targets: ["ClawdbotProtocol"]),
|
|
.library(name: "ClawdbotKit", targets: ["ClawdbotKit"]),
|
|
.library(name: "ClawdbotChatUI", targets: ["ClawdbotChatUI"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.0"),
|
|
.package(url: "https://github.com/CraftedMark/textual", branch: "main"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ClawdbotProtocol",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "ClawdbotKit",
|
|
dependencies: [
|
|
"ClawdbotProtocol",
|
|
.product(name: "ElevenLabsKit", package: "ElevenLabsKit"),
|
|
],
|
|
resources: [
|
|
.process("Resources"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "ClawdbotChatUI",
|
|
dependencies: [
|
|
"ClawdbotKit",
|
|
.product(
|
|
name: "Textual",
|
|
package: "textual",
|
|
condition: .when(platforms: [.macOS, .iOS])),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.testTarget(
|
|
name: "ClawdbotKitTests",
|
|
dependencies: ["ClawdbotKit", "ClawdbotChatUI"],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
])
|