Xcode Playgrounds help developers explore Swift language and Apple framework APIs and provide a scratchpad for experimentation. Since Xcode 12 playgrounds have been integrated with the new build system and can also used with Frameworks and Package dependencies.
As long as the Playground and the package or framework are in the same workspace, we can make these dependencies available to the playground by enabling the Playground Settings Build Active Scheme in the Playground inspector.
Build active Scheme tells XCoce to automatically build all targets in the currently selected scheme and make any modules (frameworks/packages) importable to the Playground.