-
Steps to reproduceHi Everyone, I wanted to test Skip and see the potential of making apps for iOS and Android with (mostly) Swift and the first impressions are awesome! (Great job! 🎉) However, I wanted to test if TCA can be used in used to builds and run apps for both platforms. I added TCA as my dependency: import PackageDescription
let package = Package(
name: "project-name",
defaultLocalization: "en",
platforms: [.iOS(.v17), .macOS(.v14), .tvOS(.v17), .watchOS(.v10), .macCatalyst(.v17)],
products: [
.library(name: "AppName", type: .dynamic, targets: ["AppName"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "1.5.18"),
.package(url: "https://source.skip.tools/skip-fuse-ui.git", "0.0.0"..<"2.0.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture.git", exact: "1.20.2"),
],
targets: [
.target(
name: "AppName",
dependencies: [
.product(name: "SkipFuseUI", package: "skip-fuse-ui"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture")
], plugins: [
.plugin(name: "skipstone", package: "skip")
]
),
]
) When I compiled it only for iOS (SKIP_ACTION = none), app compiled without any problems: However, enabling SKIP_ACTION = launch or SKIP_ACTION = build, swift compiler crashes and an error about "Android buildDebug" is reported (see logs). After reviewing open issues and FAQs, I couldn't find anything similar to my problem. However, this morning I found this link (https://skip.tools/docs/porting/#porting-swift-packages-to-android) that shares another link containing all tested packages for Skip: https://swift-everywhere.org/ I couldn't see the oficial TCA repo in the list, and based on my results I assume that it's not compatible yet. Could you confirm that? Also, Is there any workaround or recommendations to add swift packages to my project? Actual resultsApp using TCA cannot build and launch on Android. LogsSee more details in this log: Build AppName App_2025-06-06T08-27-18.txt Skip Checkup output |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Unfortunately, I don't think TCA is yet compatible with Android — at least, the package doesn't show up as building for Android (or Linux, which is typically a pre-requisite for being about to build for Android): https://swiftpackageindex.com/pointfreeco/swift-composable-architecture It would be a great addition, though, and I know some of their other packages work on Android. I bet they would appreciate a contribution, or at least an issue report with the error you are encountering. |
Beta Was this translation helpful? Give feedback.
-
TCA has an internal dependency on Combine, which is not available on Android. Pointfree has been discussing TCA 2.0 recently, and have mentioned that cross platform support is one of the main goals. |
Beta Was this translation helpful? Give feedback.
Unfortunately, I don't think TCA is yet compatible with Android — at least, the package doesn't show up as building for Android (or Linux, which is typically a pre-requisite for being about to build for Android): https://swiftpackageindex.com/pointfreeco/swift-composable-architecture
It would be a great addition, though, and I know some of their other packages work on Android. I bet they would appreciate a contribution, or at least an issue report with the error you are encountering.