• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode compilation order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode compilation order


  • Subject: Xcode compilation order
  • From: Michael McLaughlin <email@hidden>
  • Date: Wed, 04 May 2016 14:27:27 -0400

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@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode compilation order
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Building an iOS Framework - should its framework/library links be Required or Optional?
  • Next by Date: Xcode compilation order (SOLVED)
  • Previous by thread: Re: Building an iOS Framework - should its framework/library links be Required or Optional?
  • Next by thread: Re: Xcode compilation order
  • Index(es):
    • Date
    • Thread