how to get generated *.m/*.h files to be recognized in XCode4 for compilation etc?
I've got some autogenerated *.m and *.h files (from mogenerator) that I have put into a directory "mogen" in my project. What I did was add this directory into my project using "Add Files..." and t开发者_Python百科he referencing approach.
They now appear in the project, however classes trying to IMPORT the header files are getting "no such file or directory"
How do I get, in XCode 4, the classes/header files to be compiled such that they're available to the rest of the project. For example:
- do I need to manually add them to TARGET/BuildPhases/CompiledSources
- other approach?
- ideally the approach would automatically work when more auto-generated classes & header files appear
It seems all that was required was to manually add each of the new *.m files (not *.h files) to the TARGET/BuildPhases/CompiledSources area.
(i.e. not the directory - pity it wasn't possible to just add the directory and have XCode4 pickup automatically any new changes/additions of classes to the directory)
精彩评论