finestructure / Arena

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

Playgrounds do not recognise external dependencies with Xcode 12 #64

Closed finestructure closed 4 years ago

finestructure commented 4 years ago

Imported modules are flagged with "no such module", despite clearly building something. The exact same playground project works in Xcode 11.

I need to research how external dependencies are supposed to work when set up manually with Xcode 12. I suspect the project file format is different to what Arena is generating right now.

DarthMike commented 4 years ago

This seems to explain why, and has links to other articles (didn't read in detail though) https://idoit.tech/en/2020/swift-package-in-xcode-playground/

finestructure commented 4 years ago

Oh interesting, thanks for the link, @DarthMike !

ABridoux commented 4 years ago

Hi! I just tried your tool with Xcode 12 after having watched this WWDC20 session and it works fine when checking "Build Active Scheme". Before checking that box I had the "No such module" error. I post that here in case it might help.

Screenschot- 18 30 09 0510-2020@2x

finestructure commented 4 years ago

Oh, that's great news. There's a branch for Xcode 12 now as well where I've enabled "Build Active Scheme" and which cleans up a few things.

I wonder though if this fix might be better for other reasons. Thanks for the tip!