No Such Module 'Ensembles' Error - importing objective-c framework to use in swift project

时光怂恿深爱的人放手 提交于 2019-12-03 20:10:38
A.Roe

When creating a bridging header you do not need to use import.

However I don't think you may be adding a bridging header correctly, go to, file, new, file, add a objective-C file and a dialog should pop up asking if you want to create a bridging header. Add both files but delete the objective-C file and keep the bridging header.

Then import the ensembles framework to the bridging header like so.

#import <Ensembles/Ensembles.h>

When creating a bridging file successfully you should not need to import the framework in your swift files and it should be available throughout your project. See this post for more information - Connect Objective C framework to Swift iOS 8 app (Parse framework)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!