-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Build Error 'sys/random.h' file not found #92
Comments
The inclusion of the header file is guarded by the following preprocessor instruction: #if defined(__APPLE__) && defined(__MAC_10_12)
#include <sys/random.h>
#endif So, even though you are compiling for iOS both symbols seem to be defined, and the compiler therefore tries to include the header file You could try to modify the check as follows: #if defined(__APPLE__) && defined(__MAC_10_12) && !defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
#include <sys/random.h>
#endif Most likely this will prevent the inclusion of the header file for the iOS build. Please let me know whether this works for you. |
This fixed the issue! |
Thanks for confirming. Commit a8c9e93 applies the fix. |
When building on Mac OS for an iOS device there is an error in sqlite3.c (amalgamation file).
sqlite3.c fatal error: 'sys/random.h' file not found
#include <sys/random.h>
After removing the line, it builds and works.
The text was updated successfully, but these errors were encountered: