Class _PointQueue is implemented in both when I click on textfield... How can I resolve this issue?
Asked Answered
S

4

34

I'm using xcode 13 and making a demo on coredata.

objc[6188]: Class _PathPoint is implemented in both /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) and /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). One of the two will be used. Which one is undefined.

objc[6188]: Class _PointQueue is implemented in both /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) and /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). One of the two will be used. Which one is undefined.

Supremacist answered 17/11, 2021 at 14:49 Comment(2)
Are you having any problems in your app or your code when this happens?Tsui
I have that error when showing. #71610335Doriandoric
B
33

Apple developer Quinn “The Eskimo!” @ Developer Technical Support @ Apple answered this question here:

This is not an error per se. Rather, it’s the Objective-C runtime telling you that:

  • Two frameworks within your process implement the same class (well, in this case classes, namely _PathPoint and _PointQueue).
  • The runtime will use one of them, choosing it in an unspecified way.

This can be bad but in this case it’s not. Both of the implementations are coming from the system (well, the simulated system) and thus you’d expect them to be in sync and thus it doesn’t matter which one the runtime uses.

So, in this specific case, these log messages are just log noise.

Betthezel answered 17/11, 2021 at 17:31 Comment(4)
I am seeing above often in the Debug Area in my Playground. If there was an easy way to not see it anymore I would appreciate it.Questionable
This really isn't a good answer, there should be resolution to this, even if it has to be taken to Apple.Dianadiandra
@JohnPitts "resolution" to what? Quoted above is Apple response. SO yes, it was taken to Apple, and Apple basically tells us to ignore it.Betthezel
It's totally an error, but it's Apple's error, not the programmer's. It's good that it doesn't cause us problems beyond log noise (which is a problem, albeit a pretty small one), but Apple should be fixing this so that their code doesn't complain about its own behavior. You can generate the message by opening safari in a split screen with your app; when the keyboard comes up so you can type in the address bar in the browser, the error appears. Makes no difference what your app does or doesn't do. Poor form, Apple.Fitzsimmons
R
2

This error usually happens when you add a gesture recognizer inside a view that also has a gesture recognizer of its own. In your case, you may have added the textField as a subview of a view that has some sort of gesture recognizer, or scroll. So when you tap on that textField, it does not know which gesture to trigger. So, look into your implemetation and figure out if the textView is inside another view that has a geture.

In my case, I created a view, which had a gesture recognizer, and this view had a UITextView() as a subview. So when the parent view was tapped and the gestured was used, I would get this error. I solved it by disabling user interaction on my textView.


textView.isUserInteractionEnabled = false

Reciprocal answered 18/5, 2022 at 1:51 Comment(0)
S
0

I got this error when using Rosetta to open Xcode 13.1.

After disabling the option "open with Rosetta" those errors were gone.

Seagrave answered 1/12, 2022 at 16:33 Comment(0)
B
-2

I was getting the same error. I had hyperlink in textView

--> ex "I’ve read the Privacy Notice ..."

Then I realized that the link I entered into the hyperlink must meet the universal conditions. My hyperlink is;

wrong case --> "https://www.AçıkRıza.com"

true case --> "https://www.acikriza.com"

I was then able to build it successfully.

Bangs answered 7/3, 2022 at 7:52 Comment(2)
So _PathPoint was reported as duplicate only when you used the invalid URL? Sound improbable as this kind of warnings are logged at application startup, and have little to do with conditions that occur during the app lifetime, like yours universal link.Eupheemia
In my case yes, but this error can be from many different scenarios. I got similar textview error " ... TextInputUI (0x12cd4a8d8). One of the two will be used. Which one is undefined". It solved my problem, maybe it will help.Bangs

© 2022 - 2024 — McMap. All rights reserved.