• 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
Static Analyzer Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Static Analyzer Problems


  • Subject: Static Analyzer Problems
  • From: Dave <email@hidden>
  • Date: Fri, 28 Oct 2011 09:44:11 +0100

Hi All,

I've inherited a Mac project that is a bit of a mess. The previous person (a Window's programmer) decided it was a good idea to develop a core "engine" (15 source files out of a total of 60) in C++ on windows and then move onto the Mac/XCode 3 and "bend" the project settings to suit it. Also where there is Objective-C code it doesn't conform to the Cocoa guide lines and some it has been made to "look" like C++, things like this:

obj = [OBJECT alloc];
obj = [obj init];
[obj Construct];

And in the init method:

-(id) init
{
[super init];

return self;
}

This project was developed using XCode 3 and I can't get it to compile under XCode 4. So I decided to stay with XCode 3. The project compiles and runs ok, but has 170 warnings. If I try to do a Build and Analyze I get the following error over and over on all the source files:

Analyzer skipped this file due to parse errors

fatal error: "/var/folders/u2/-RANDOM-STRING-/-caches-com.apple.XCode. 501/SharedPrecompiledHeaders/LTW_MAC_Prefix-RANDOM-STRING/ LTW_MAC_Prefix.pch" file not found

I can't figure out why I should get this error since the project compiles ok. The only thing I can think of is that I think that the C+ + code is reliant on GCC and the Analyzer uses LVM as far as I know? But why this should cause it to lose the precompiled headers file is beyond me.

Any help on this and any advice/suggestions on how to proceed on this project would be gratefully appreciated. I obviously want to get rid of the C++ Code, but it is deeply entrenched in the rest of the objective-c UI (No MVC in this project!!).

All the Best
Dave










_______________________________________________ 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: Static Analyzer Problems
      • From: Laurent Daudelin <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: Adding files to Xcode via script bridge.
  • Previous by thread: Re: Error calling __builtin_expect inside omp parallel for?
  • Next by thread: Re: Static Analyzer Problems
  • Index(es):
    • Date
    • Thread