开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜