gpt4 book ai didi

swift - 如何修复 "objc[29072]: Class CLSUserDefaults is implemented in both"崩溃?

转载 作者:行者123 更新时间:2023-11-28 13:25:06 27 4
gpt4 key购买 nike

我将我的 Xcode 从 10.2 更新到 11。项目编译成功,但是当我运行项目时,它崩溃了。日志生成以下信息:

objc[29072]:类 CLSUserDefaults 在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot 中实现/System/Library/Frameworks/ClassKit.framework/ClassKit (0x7fff87a74e58) 和/Users/anuranjanbose/Library/Developer/CoreSimulator/Devices/5EFF8F09-CBA0-491D-9E73-F8C75A0D4FE3/data/Containers/Bundle/Application/5E7E0F5F-EEFF -4252-9A40-14858F90EEE8/MyProject.app/MyProject (0x1026f3e60)。将使用两者之一。哪一个是未定义的。libc++abi.dylib:以 NSException 类型的未捕获异常终止

最佳答案

如果您正在使用 Crashlytics,请将 Pod 中的 FabricCrashlytics 版本更新为:

pod 'Fabric’, '~> 1.10.2’
pod 'Crashlytics’, '~> 3.14’

然后是pod install

关于swift - 如何修复 "objc[29072]: Class CLSUserDefaults is implemented in both"崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58500462/

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