No such module while importing my custom framework to the project

∥☆過路亽.° 提交于 2019-12-07 06:40:23

问题


I followed this tutorial and also this video to create my custom framework. Once I build it for the simulator version/or both simulator and device, I would like to add this to my project. I just drag and drop it to project:

My PersonFramework within project navigator:

Target membership for my PersonFramework:

Linked Frameworks for my App target.

And finally my try to import this to the project:

No such module PersonFramework.

What am I doing wrong?


回答1:


Close the Xcode.

Go into user(you)/Library/Developer/Xcode/DerivedData and delete the folder contents.

If you have a build of you app in a running simulator you'll need to also delete the build folders.

Reopen the Xcode. Clean & Build.




回答2:


FRAMEWORK_SEARCH_PATHS build setting needs to point to the location of the framework.



来源:https://stackoverflow.com/questions/31634538/no-such-module-while-importing-my-custom-framework-to-the-project

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