Using Xcode 7.3.0:
I recently created a Cocoa Util class for my OS X Document app and added the files to the project.
I discovered that, even though the new class compiles, one of my existing class source files, Data.mm, does not see the header. Nothing weird here, just
#import Util.h
When looking at the detailed compilation log, I noticed that, if a call is made to a Util method in Data.mm the log shows that Util.m is not compiled before Data.mm. In other cases, Util.m *is* compiled before the source that calls it and the compilation does not fail.
I tried reordering the compilation in the project Build phases (compiling Util.m first) and that seems to work *if and only if* I do not call Util in Data.mm. Also, *.mm vs. *.m does not seem to matter when the compilation succeeds.
Any thoughts?
Thanks.
BTW, I just noticed that Xcode 7.3.1 is now available but I have not updated yet. |