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.

--
Michael McLaughlin
[email protected]





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to