Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error importing framework in Playground

I’m following the instructions for Importing Custom Frameworks into Playground, but I still keep getting "No such module” error. I have tried adding everything in the workspace; a project with just Framework target, project of Cocoa Application with the framework, and just the Framework. I also tried creating a playground in the Application where I imported the framework, I can even import it in other swift file without any problem; but I can’t seem to be able to import it in playground.

Can someone please tell me what I might be doing wrong?

like image 573
user14492 Avatar asked Mar 16 '23 14:03

user14492


1 Answers

Try building your framework target using a simulator! I had only built mine using the generic device which doesn't work for playgrounds!

like image 104
Reid Avatar answered Apr 01 '23 16:04

Reid