finestructure / Arena

A command line tool to create Swift Playground projects with SPM package dependencies
MIT License
685 stars 16 forks source link

I get "no such module" error after importing from GitHub #103

Closed TwoDeen closed 6 months ago

TwoDeen commented 6 months ago

when I try this arena https://github.com/pointfreeco/swift-parsing.git import Parsing No such module 'Parsing'

when I try Product -> Build the package dependencies disappear!

Xcode version: Version 15.3 (15E204a) Swift: Apple Swift version 5.10 MacOS: macOS Sonoma Version 14.4.1

What am I doing wrong? Thanks

TwoDeen commented 6 months ago

I noticed that I can import the library without error in the normal project source code but the import does NOT work in the created playground!

finestructure commented 6 months ago

Mmm, I can't reproduce this. However, there's one thing you need to bear in mind when using a package with macros: you need to enable them before the package can be built.

❯ arena pointfreeco/swift-parsing
➡️  Package: https://github.com/pointfreeco/swift-parsing @ from(0.13.0)
🔧 Resolving package dependencies…
📔 Libraries found: Parsing
✅ Created project in folder 'Arena-Playground'

CleanShot 2024-05-10 at 16 31 32@2x CleanShot 2024-05-10 at 16 33 51@2x

finestructure commented 6 months ago

Closing this, please reopen if the problem persists!