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 🤔
Published at
2023-06-14 13:48:53Event JSON
{
"id": "98ad3a5f3647dc04e57d4dbdf921e00997d178a119f99ac671e3c1955f897da4",
"pubkey": "250382d8a35406905a5c7c8174319c7785e91735493af743ffb167b4276357c6",
"created_at": 1686750533,
"kind": 1,
"tags": [
[
"t",
"swift"
],
[
"mostr",
"https://mastodon.social/users/finestructure/statuses/110542882962850395"
]
],
"content": "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.\n\nE.g., how would I use https://github.com/FullQueueDeveloper/UniquelyTypedID ?\n\n```\n .target(name: \"test\", dependencies: [\n .product(name: \"UniquelyTypedID\", package: \"UniquelyTypedID\")\n ]),\n```\n\nis insufficient (\"Unknown attribute 'UniquelyTypedId’”) and I can't use `UniquelyTypedIDMacros` instead of `UniquelyTypedID`\n\nMust be missing sth obvious 🤔",
"sig": "c3ab444fc0b58f55a6353a64d195c6203d6b232f06a4853ea41ba41f797a7ab4507bf84a6b9fc247961c89442358df08292bdbe56a4a8840be2e2b305c2f90cd"
}