rules_swift icon indicating copy to clipboard operation
rules_swift copied to clipboard

Bazel rules to build Swift on Apple and Linux platforms

Results 147 rules_swift issues
Sort by recently updated
recently updated
newest added

I'm seeing a swiftc compiler crash only when compiling my project with Bazel. Here's some of the relevant output: ``` ERROR: /opt/homebrew/var/buildkite-agent/builds/SwiftLint-Buildkite-1/swiftlint/swiftlint/BUILD:26:13: Compiling Swift module //:swiftlint failed: (Exit 1): worker...

This PR contains changes that reproduce the Swift Objc interop issue we observe in our codebase. I was able to make a repro within rules_swift example directory. Notes : -...

I recently merged https://github.com/bazelbuild/rules_swift/pull/1140 which introduced a new, highly-customizable swift_proto_library implementation. However, because this dropped support for the proto aspect, consumers of the deprecated rules who relied on this behavior...

This cherry-picks support for producing const values produced via the compiler flags `-emit-const-values-path` and `-const-gather-protocols-file`. rules_apple will start using this feature in https://github.com/bazelbuild/rules_apple/pull/2418.

On Linux, and to some extent on macOS, Swift ships with its own version of `clang`. Our problem: we have a tree with a lot of targets for different platforms,...

In Swift_C_Module.bzl, the documentation mentions that ``` **Use an auto-generated module map.** In this case, the `swift_c_module` rule is not needed. If a `cc_library` is a direct dependency of a...

I’m having trouble compiling Swift code into a shared library using rule_swift(.so). I’ve tried many methods, but none of them have worked. Is rule_swift still not supported for this purpose?...

I _assume_ it's from incremental compilation, because I don't know how a normal compile could do this. I have a case where _somehow_ (I think a failed or cancelled compile)...

Cherry-picked from commit: c24a84a > With the toolchain information removed, this aspect/provider offers a minimal API. > The only client is rules_apple, which uses it to determine if Swift support...

When `swift_test` depends on the universal plugin, build fails with the following error: ``` examples/xplatform/macros/StringifyMacroTests.swift:18:8: error: missing required module 'SwiftCompilerPlugin' import StringifyMacroPlugin ^ examples/xplatform/macros/StringifyMacroTests.swift:18:8: error: missing required module 'SwiftCompilerPlugin' import...