Need help with rules_apple_line?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

176 Stars 12 Forks Apache License 2.0 114 Commits 3 Opened issues


LINE's Apple rules for Bazel

Services available


Need anything else?

Contributors list

LINE's Apple rules for Bazel

This repository contains additional rules for Bazel that can be used to bundle applications and frameworks for Apple platforms.


These are open references of what are used to build the LINE iOS app, which solve some of our specific use-cases, for instance, mixed Objective-C and Swift modules. They can be used as drop-in replacements for the official Apple rules when needed, with the goal of being easy to switch back to the official ones when we longer need them.

They may not work with certain revisions of

due to their breaking changes. If they don't work out-of-the-box for you, use them as references for your custom rule's implementation.

Build Definitions

Library Rules

Bundling Rules

Other Rules


Bazel 4.0+


  • Setup rules_apple.

  • Add the following to your

    file, replacing
     with the
    commit you wish to depend on and 
     with the expected SHA-256 of the
    zip file.

http_archive( name = "rules_apple_line", sha256 = "", strip_prefix = "rules_apple_line-%s" % RULES_APPLE_LINE_COMMIT, url = "" % RULES_APPLE_LINE_COMMIT, )

load( "@rules_apple_line//apple:repositories.bzl", "rules_apple_line_dependencies", )



See the examples directory.


Copyright 2020 LINE Corporation

LINE Corporation licenses this file to you under the Apache License, version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See LICENSE for more detail.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.