bazel-xcode / bazel-xcode/PodToBUILD

Using with swift project (swift_library)

Open
#181 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
330
Forks
68
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying to use this macro with a project that is built using `swift_library`

I've created the `Pods.WORKSPACE` file with the following content
```
new_pod_repository(
name = "CryptoSwift",
url = "https://github.com/krzyzanowskim/CryptoSwift/archive/refs/tags/1.4.1.zip",
inhibit_warnings = True,
podspec_url = "https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/3/e/b/CryptoSwift/1.4.1/CryptoSwift.podspec.json"
)
```

Added the following lines to the root `WORKSPACE`

```
http_archive(
name = "rules_pods",
urls = ["https://github.com/pinterest/PodToBUILD/releases/download/0.25.2-8a5efa0/PodToBUILD.zip"],
)

load("@rules_pods//BazelExtensions:workspace.bzl", "new_pod_repository")
```

But when I try to use it as follows

swift_library(
```
name = ".......
deps = [
"//Vendor/CryptoSwift:CryptoSwift",

```
I get the next error:

`no such target '//Vendor/CryptoSwift:CryptoSwift': target 'CryptoSwift' not declared in package 'Vendor/CryptoSwift' defined by `

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.