• 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
Precompiled headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Precompiled headers


  • Subject: Precompiled headers
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 26 Nov 2014 22:14:44 +0000

I notice in a newly created Obj-C project (Xcode 6.1) that targets no longer use precompiled headers by default, presumably because they now enable modules by default.

Previously, I also used the .pch file as a place to put some definitions/includes that I used in most .m files, to avoid repeating the same #import in every file. For example, in some projects I’ve done this to get AppDelegate.h available everywhere.

Is there now an alternative way of importing headers into every compilation without re-enabling precompiled headers? Should I actively avoid using precompiled headers now, or should I just go ahead use one to get the above convenience?


 _______________________________________________
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: Precompiled headers
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Xc6 won’t archive standalone OS X frameworks?
  • Next by Date: Re: Precompiled headers
  • Previous by thread: "Unable to create device in current state" in shipping version of XC 6.1
  • Next by thread: Re: Precompiled headers
  • Index(es):
    • Date
    • Thread