Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bazel iOS Framework

Tags:

bazel

I have been unable to find any examples of how to create an iOS framework using Bazel. There is an ios_framework rule, but being new to the build system, I am unsure how to use it.

Is this possible to create a framework, and if so, how would I go about doing so?

like image 407
Steve Avatar asked Oct 27 '25 13:10

Steve


1 Answers

Would this work for you? I've left all of the optionals off to keep things simpler:

BUILD:

ios_framework(
    name = "framework",
    binary = ":framework_binary",
)

ios_framework_binary(
    name = "framework_binary",
    srcs = [
        "frameworksource.m",
    ],
)
like image 178
dmaclach Avatar answered Oct 29 '25 09:10

dmaclach



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!