bazel-ios / cocoapods-bazel

A Cocoapods plugin for automatically generating Bazel BUILD files
Apache License 2.0
110 stars 21 forks source link

An compiling error #71

Open fchen09 opened 2 years ago

fchen09 commented 2 years ago

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 commented 2 years ago

@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?