iosxcode16

Xcode 16.3 pngcrush.h error: 'fp.h' file not found (in target 'pngcrush' from project 'pngcrush'


The app I inherited does not compile in xcode 16.3. In 16.2 it does compile. Error it is showing is error: 'fp.h' file not found (in target 'pngcrush' from project 'pngcrush') Not really sure why pngcrush is used in the project, but the project is really old... Also not sure which change in 16.3 causes this to fail...


Solution

  • how to hot fix:
    You can temporarily move #include <math.h> below #include <fp.h>.

    #    if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__)
    #      include <math.h>
    #    endif
    #  else
    #    include <fp.h>