简体   繁体   English

如何修复“objc [29072]:Class CLSUserDefaults 在两者中都实现”崩溃?

[英]How to fix “objc[29072]: Class CLSUserDefaults is implemented in both” crash?

I updated my Xcode from 10.2 to 11. The project is compiling successfully, but when I run the project, it crashes.我将我的 Xcode 从 10.2 更新到 11。项目编译成功,但是当我运行项目时,它崩溃了。 The log generates the following info:日志生成以下信息:

objc[29072]: Class CLSUserDefaults is implemented in both /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) and /Users/anuranjanbose/Library/Developer/CoreSimulator/Devices/5EFF8F09-CBA0-491D-9E73-F8C75A0D4FE3/data/Containers/Bundle/Application/5E7E0F5F-EEFF-4252-9A40-14858F90EEE8/MyProject.app/MyProject (0x1026f3e60). objc[29072]:Class 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)。 One of the two will be used.将使用两者之一。 Which one is undefined.哪一个是未定义的。 libc++abi.dylib: terminating with uncaught exception of type NSException libc++abi.dylib:以 NSException 类型的未捕获异常终止

If you are you using Crashlytics , update your Fabric and Crashlytics versions in your Pods as:如果您正在使用Crashlytics ,请将Pods中的FabricCrashlytics版本更新为:

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

And then pod install .然后pod install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行时警告 CLSUserDefaults 实现了两次 - Runtime warning CLSUserDefaults is implemented twice Xcode 12 beta 和 iOS 14:奇怪的控制台日志“objc [5551]:Class ...在两者中都实现了” - Xcode 12 beta and iOS 14: Weird console logs "objc[5551]: Class ... is implemented in both" 我在 xcode 12.5 模拟器 iphone 11 ios 14.5 objc[38321] 中构建应用程序时遇到此问题:Class CSAudioFileManager is implementation in both - I am getting this issue when building an app in xcode 12.5 simulator iphone 11 ios 14.5 objc[38321]: Class CSAudioFileManager is implemented in both 如何修复 Xcode 中的错误“未定义符号:_OBJC_CLASS_$_GADInterstitialAd”? - How to fix error "Undefined symbol: _OBJC_CLASS_$_GADInterstitialAd" in Xcode? Objc class 和 Swift 协议名称冲突。 我怎样才能同时使用两者? - Objc class and Swift protocol have conflicing names. How can I use both? iOS 单元测试:类在两者中都实现 - iOS Unit Testing: Class is implemented in both 类SSKeychain在framwork和appilcation iOS中实现 - Class SSKeychain is implemented in both framwork and appilcation iOS dyld:找不到符号:_OBJC_CLASS_$_Reachability,Xcode 11 崩溃 - dyld: Symbol not found: _OBJC_CLASS_$_Reachability, Xcode 11 crash Class 当我单击文本字段时,_PointQueue 在两者中都实现了...我该如何解决这个问题? - Class _PointQueue is implemented in both when I click on textfield... How can I resolve this issue? 嵌套类具有不稳定的名称。 使用奇怪的参数修复@objc - Nested class has unstable name. Fix with @objc with strange param
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM