Xcode file not found

I encountered a file error that was not found.

I added all the necessary files, but the file was not found for the file.

#import "MagickWand.h"

for the above file it gives an error.

#import "FrameSection.h"
#import "FreeCropIphone5.h"
#import "DoodleView.h"

Please help me.

+4
source share
6 answers

Empty the build folder by clicking ⌘ + alt + ⇧ + k. This can help you correct the error that occurred.

There can be many cases in this error. This is one of the solutions to this error.

+6
source

NOTE

According to such a problem, the reason may be sometime due cyclic import. means that you have a file with the name first.hand you are importing second.hand second.hyou are importing into first.hand you are not including first.h.

, , .

target of projectBuild PhasesCompile Sources

[found filename that cause the error in program].m

.

enter image description here

Clean iOS Build .

enter image description here

+2

XCode, , Project , .

Solution:

, " " , .

enter image description here

+1

(git). :

  • xcode ( ).
  • ( ).

, !

+1

, .

To do this, you can access your project settings, select your goal in the "Generate phases" section, in the "Linking binary files to libraries" section, in which your framework is presented.

0
source

Use the search bar in the Target → Build Phases window to make sure that the missing .m file is listed in the compilation sources and that the .h file is listed in the Copy Files section. If it is not, add it.

I was able to fix this problem by adding the missing .h file.

0
source

All Articles