I get an error on xCode when I'm trying to archive a new version of my app and I can't figurate out where it come from and how can I fix it.
Look at the printscreen from xcode: Screenshot
iOS 11 changed the signature of that method.
You can try this
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
extern int SecRandomCopyBytes(SecRandomRef rnd, size_t count, void *bytes) __attribute__((weak_import));
#else
extern int SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes) __attribute__((weak_import));
#endif
Source : https://github.com/RNCryptor/RNCryptor/issues/248
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With