First, as of jan 2025 this problem still exists with xcode 16.2 running on the simulator for iphone and ipad.
Second, I see the same message in a simple app with pure objc code whenever I long press on a text field:
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
Backtrace:
<CGPathAddLineToPoint+80>
<+[UIBezierPath _continuousRoundedRectBezierPath:withRoundedCorners:cornerRadii:segments:smoothPillShapes:clampCornerRadii:]
<+[UIBezierPath _continuousRoundedRectBezierPath:withRoundedCorners:cornerRadius:segments:]+184>
<+[UIBezierPath _roundedRectBezierPath:withRoundedCorners:cornerRadius:segments:legacyCorners:]+340>
<-[_UITextMagnifiedLoupeView layoutSubviews]+1252>
<-[UIView(CALayerDelegate) layoutSublayersOfLayer:]+2404>
<_ZN2CA5Layer16layout_if_neededEPNS_11TransactionE+432>
<_ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE+124>
<_ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd+464>
<_ZN2CA11Transaction6commitEv+652>
<_ZN2CA11Transaction25flush_as_runloop_observerEb+68>
<_UIApplicationFlushCATransaction+48>
<__setupUpdateSequence_block_invoke_2+352>
<_UIUpdateSequenceRun+76>
<schedulerStepScheduledMainSection+168>
<runloopSourceCallback+80>
...
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: