Undefined time_t in openssl

I'm having trouble compiling my project for the iOS 18.2 simulator. I'm getting the following error:

`Missing '#include <sys/_types/_time_t.h>'; 'time_t' must be declared before it is used`

The error points to to simulartor-iOS 18.2 > user/include/sys/_types/_time_t.h

#ifndef _TIME_T
#define _TIME_T
#include <machine/types.h> /* __darwin_time_t */
typedef __darwin_time_t         time_t;
#endif  /* _TIME_T */

This suggests that the time_t type should be defined, but the compiler isn't seeing it. I suspect there might be a problem with preprocessor definitions.

Is there anything I set wrong? I am using OpenSSL.xcframework.

Undefined time_t in openssl
 
 
Q