Why Nostr? What is Njump?
2023-06-14 13:48:53

Sven A. Schmidt on Nostr: How do you import and use a #Swift macro declared in another package? There is no ...

How do you import and use a #Swift macro declared in another package? There is no `.macro()` product to import and I can't import the macro target.

E.g., how would I use https://github.com/FullQueueDeveloper/UniquelyTypedID ?

```
.target(name: "test", dependencies: [
.product(name: "UniquelyTypedID", package: "UniquelyTypedID")
]),
```

is insufficient ("Unknown attribute 'UniquelyTypedId’”) and I can't use `UniquelyTypedIDMacros` instead of `UniquelyTypedID`

Must be missing sth obvious 🤔
Author Public Key
npub1y5pc9k9r2srfqkju0jqhgvvuw7z7j9e4fya0wsllk9nmgfmr2lrqlngg3h