rules_swift
rules_swift copied to clipboard
Bazel rules to build Swift on Apple and Linux platforms
Through the investigation of https://github.com/bazelbuild/bazel/issues/12049 one of the things I discovered was that when using `actions.run` there are 2 options for environment variables. `use_default_shell_env = True` is recommended, but cannot...
I have an app that consists of a single Swift/ObjC module, specified using an ObjC and a Swift rule, and a similar unit test module using an ObjC and a...
We have a rule that generates a `.framework` bundle. These bundles can then be used via [`apple_static_framework_import`](https://github.com/bazelbuild/rules_apple/blob/master/doc/rules-general.md#apple_static_framework_import) for example. In cases where the framework is used as a dependency of...
This fixes https://github.com/bazelbuild/bazel/issues/12049 and apparently is the recommendation wherever possible.
I'm trying to build RxSwift/RxCocoa (from https://github.com/ReactiveX/RxSwift) with Bazel, and getting some errors I can't quite figure out when trying to import the objc_library target for the RxCocoaRuntime into RxCocoa....
I have a `swift_library` depending on an `objc_library` that has a header map like this ```python swift_library( name = 'Foo' ) objc_library( name = 'Bar', hdrs = ['**/*.h'], includes =...
The ObjcProvider framework migration stuffs everything in the `Modules` directory of a framework into the `modulemap` key, but that's not correct for Swift modules/interfaces. A workaround for this is currently...
This replacement causes issues with importing indexstores. In 965c37304cbc0263b6a5b0a945529c66a593c34c this replacement was added to work around issues with `ar_wrapper`. I don't see `ar_wrapper` used anywhere in Bazel, so I believe...
Bazel includes libraries for looking up runfiles: https://github.com/bazelbuild/bazel/tree/486d153d1981c3f47129f675de20189667667fa7/tools/cpp/runfiles, https://github.com/bazelbuild/bazel/tree/486d153d1981c3f47129f675de20189667667fa7/tools/java/runfiles, etc. rules_swift should provide one as well, to enable look up of `data` files. With Bzlmod this will have a greater...
Here are sample app which crashes only in release build using Bazel (`-c opt`). Everything works fine in debug build. In optimised build it crashes with `EXC_BAD_ACCESS` or `dyld: missing...