【问题标题】:Class _PointQueue is implemented in both when I click on textfield... How can I resolve this issue?当我单击文本字段时,两个都实现了类 _PointQueue ......我该如何解决这个问题?
【发布时间】:2026-02-23 20:15:01
【问题描述】:

我正在使用 xcode 13 并在 coredata 上进行演示。

objc[6188]:类 _PathPoint 在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot 中实现/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x114a8fa78) 和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources /RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x12cd4a8b0)。将使用两者之一。哪一个是未定义的。

objc[6188]:类 _PointQueue 在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot 中实现/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x114a8fa50) 和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources /RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x12cd4a8d8)。将使用两者之一。哪一个是未定义的。

【问题讨论】:

  • 发生这种情况时,您的应用程序或代码是否有任何问题?

标签: ios swift xcode core-data uitextfield


【解决方案1】:

Apple 开发人员 Quinn “爱斯基摩人!” @开发者技术支持@Apple回答了这个问题here

这本身不是错误。相反,是 Objective-C 运行时告诉你:

  • 您的流程中的两个框架实现了同一个类(好吧,在本例中是类,即 _PathPoint 和 _PointQueue)。
  • 运行时将使用其中一个,以未指定的方式选择它。

这可能很糟糕,但在这种情况下并非如此。这两种实现都来自系统(嗯,模拟系统),因此您希望它们是同步的,因此运行时使用哪一个并不重要。

因此,在这种特定情况下,这些日志消息只是 log noise

【讨论】:

    最近更新 更多