Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such module while importing my custom framework to the project

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:

enter image description here

Target membership for my PersonFramework:

enter image description here

Linked Frameworks for my App target.

enter image description here

And finally my try to import this to the project:

enter image description here

No such module PersonFramework.

What am I doing wrong?

like image 238
Bartłomiej Semańczyk Avatar asked Jul 26 '15 07:07

Bartłomiej Semańczyk


2 Answers

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

like image 77
Bartłomiej Semańczyk Avatar answered Nov 15 '22 03:11

Bartłomiej Semańczyk


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.

like image 35
CodeOverRide Avatar answered Nov 15 '22 04:11

CodeOverRide