Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An compiling error #71

Open
fchen09 opened this issue Jul 3, 2022 · 1 comment
Open

An compiling error #71

fchen09 opened this issue Jul 3, 2022 · 1 comment

Comments

@fchen09
Copy link

fchen09 commented Jul 3, 2022

Hi,
I am glad you build such a wonderful tool!
However, I met the following error when compiling
image
I successfully built the workspace, and added the dependency into my app BUILD.bazel
image
I also added the followind codes in my WORKSPACE, but the compiling error occurs. Thanks for your help!
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "build_bazel_rules_ios",
remote = "https://github.com/bazel-ios/rules_ios.git",
branch = "master",
)

load(
"@build_bazel_rules_ios//rules:repositories.bzl",
"rules_ios_dependencies"
)

rules_ios_dependencies()

load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)

apple_rules_dependencies()

load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)

swift_rules_dependencies()

load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)

apple_support_dependencies()

load(
"@com_google_protobuf//:protobuf_deps.bzl",
"protobuf_deps",
)

protobuf_deps()

@thiagohmcruz
Copy link
Contributor

@fchen09 always great to hear how useful this fool is for folks!

The file mentioned in the err message was added in May and rules_ios is definitely pointing to a later version of rules_apple from June.

So not sure what is going on with your repo but is it possible that you have other configs overriding the version of rules_apple and making it run on an older version that doesn't have the changes above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants