• 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
Re: What would cause Cocoa classes not to be recognized in a Cocoa Touch framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What would cause Cocoa classes not to be recognized in a Cocoa Touch framework?


  • Subject: Re: What would cause Cocoa classes not to be recognized in a Cocoa Touch framework?
  • From: Gavin Stokes <email@hidden>
  • Date: Wed, 11 Dec 2013 15:12:20 -0800

Thanks, Jacopo.  Good insight: This does indeed seem to be a
precompiled header problem.  I was doing a merge just now, and noticed
the PCH files were different.  But the differences aren't just a
missing line; there's different boilerplate comment text too.  Here's
the older PCH file:

  // Prefix header for all source files of the 'FPSharing' target in
the 'FPSharing' project
  //

  #ifdef __OBJC__
  #import <UIKit/UIKit.h>
  #import <Foundation/Foundation.h>
  #endif

And here's the newer one:

  //  Prefix header
  //
  //  The contents of this file are implicitly included at the
beginning of every source file.
  //

  #ifdef __OBJC__
  #import <Foundation/Foundation.h>
  #endif

Note that the UIKit inclusion has disappeared, hence all those errors.
 So the question is why this happened.  I assume that the text changed
in some version of Xcode, so maybe this change introduced a bug that
eliminated UIKit when generating PCH files.
 _______________________________________________
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


References: 
 >What would cause Cocoa classes not to be recognized in a Cocoa Touch framework? (From: Gavin Stokes <email@hidden>)
 >Re: What would cause Cocoa classes not to be recognized in a Cocoa Touch framework? (From: Jacopo Andrea Giola <email@hidden>)

  • Prev by Date: Re: Suddenly Xcode decides it can't find headers in a framework. Anyone know why?
  • Next by Date: lldb: 'CompileUnit' and 'LineEntry' are wrong
  • Previous by thread: Re: What would cause Cocoa classes not to be recognized in a Cocoa Touch framework?
  • Next by thread: lldb: 'CompileUnit' and 'LineEntry' are wrong
  • Index(es):
    • Date
    • Thread