gpt4 book ai didi

ios - 'SecRandomCopyBytes' 的冲突类型

转载 作者:可可西里 更新时间:2023-11-01 17:12:54 25 4
gpt4 key购买 nike

当我尝试存档我的应​​用程序的新版本时,我在 xCode 上遇到错误,我无法弄清楚它来自哪里以及如何修复它。

查看来自 xcode 的打印屏幕:Screenshot

最佳答案

iOS 11 更改了该方法的签名。

你可以试试这个

#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

来源:https://github.com/RNCryptor/RNCryptor/issues/248

关于ios - 'SecRandomCopyBytes' 的冲突类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46543928/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com