在 Playground 中导入框架时出错 [英] 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?
I solved my problem with a different solution than Michael Welch's. I had my Xcode derived data setting different than original. Go to Preferences > Locations > Derived Data > Advanced
and select Unique. This solved the framework not appearing in playground problem for me.
这篇关于在 Playground 中导入框架时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!