0

I'm trying to create asimple framework for testing.

I referred this website and step by step do every one.

But, when I Build the program , It is always show the error "File not found".

I have used Aggregate Target to build the framework, like the website explain.

it is my framework project file code(header file).

enter image description here

it is my framework project file code(implement file).

enter image description here

it is my framework setting photo.

enter image description here it is my test to use the framework file code. enter image description here

it is my test to use the framework project setting. enter image description here

Does anyone know what's wrong in my steps?

Thank you very much.

I used XCode 6.1.1 version IDE.

//============================ @Kevin:

thanks. but..

If I change the import file. it will show error below:

enter image description here

dickfala
  • 3,246
  • 3
  • 31
  • 52

1 Answers1

0

Don't include the ".framework" part in the import.

#import "MyFramework/MyFramework.h"
Kevin
  • 53,822
  • 15
  • 101
  • 132
  • please see my edit. I have change the import file. but it will show that error. you can see my upload screenshot. thank you. – dickfala Dec 26 '14 at 05:31
  • That's a completely different question. Did you add `#import "MyUtils.h"` to MyFramework.h? (might need to be "MyFramework/MyUtils.h" instead). – Kevin Dec 26 '14 at 05:34
  • Thank you , @Keven. I have not add MyUtils.h to MyFramework.h. So It will not found the method. When I add import file. It will show correct. Thank you very much,@Keven . :) – dickfala Dec 26 '14 at 05:45