• 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: Compile errors in PCH on Mac OS X project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile errors in PCH on Mac OS X project


  • Subject: Re: Compile errors in PCH on Mac OS X project
  • From: Michael Herring <email@hidden>
  • Date: Thu, 31 May 2012 15:22:46 -0500

Just a sanity check: was Foundation.framework removed from your target/xcodeproj?

./Michael

On Thu, May 31, 2012 at 3:18 PM, Robert Tillyard <email@hidden> wrote:
I've had a project that I haven't worked on for a bit that I tried to compile under a more modern Xcode and now I'm getting compile errors in the Pre Compiled Headers saying that NSData is an unknown data type in the headers.
I've tried changing the compiler to each of the supported compilers, changing the target to 10.7, 10.6 and 10.5 but still no joy.

Has anybody encountered this before? or better still fixed it?

I've seed some stuff on Google search about this happening in iOS Apps and a newer version of Xcode fixed it but I've now tried 3.1.4 (on 10.5.8), 3.2.6 and 4.3.2 (on 10.7)

The error is: 

on Xcode 3.2.6

/Developer-old/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h:24:0 Expected specifier-qualifier-list before 'NSData' in /Developer-old/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h

on Xcode 4.3.2

In file included from /Users/rob/Work/tutorials/CD3/CD3_Prefix.pch:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:26:
In file included from /Users/rob/Work/tutorials/CD3/Time.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSAttributeDescription.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSPropertyDescription.h:23:2: error: unknown type name 'NSData'
        NSData *_versionHash;

Regards, Rob. 



 _______________________________________________
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


 _______________________________________________
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: Compile errors in PCH on Mac OS X project
      • From: Robert Tillyard <email@hidden>
References: 
 >Compile errors in PCH on Mac OS X project (From: Robert Tillyard <email@hidden>)

  • Prev by Date: Compile errors in PCH on Mac OS X project
  • Next by Date: Re: Compile errors in PCH on Mac OS X project
  • Previous by thread: Compile errors in PCH on Mac OS X project
  • Next by thread: Re: Compile errors in PCH on Mac OS X project
  • Index(es):
    • Date
    • Thread