Xcode: "The analyzer skipped this file due to parsing errors"

my project includes a simple C file with a header. Like this:

#ifndef __IMAGE_ARRAY_3D
#define __IMAGE_ARRAY_3D

typedef struct ImageArray3D {
    double *data;                       // The image data
    LargeElement *largestElements;      // c * nLargestElements
    int c, w, h, nLargestElements;
} tImageArray3D;     // Error points to here

...

#endif

When I start the Xcode static analyzer, I get the following error:

The analyzer skipped this file due to analysis errors.

overriding "ImageArray3D" as another character

What is the reason for this?

+3
source share
3 answers

Here is the solution to the problem: Solution!

The recommended solution is to add following the other C flags in your project settings: -D__IPHONE_OS_VERSION_MIN_REQUIRED = 040100, where you replace 040100 with your target deployment version (030000 for 3.0, for example).

+7
source

, OS X ImageArray3D. , , , .

+1

I found the reason for this: If you select only problems with the Xcode Show, you will not see parser errors in the file! Only if you select "Show All" will you see that the analyzer has problems checking your project.

-nine
source

Source: https://habr.com/ru/post/1720813/


All Articles