I'm getting a crash when I try to run my app using Xcode 14. From the console:
dyld[21862]: Symbol not found: _$sSo6CGRectV12CoreGraphicsE9__divided5slice9remainder10atDistance4fromySpyABG_AiC7CGFloatVSo0A4EdgeVtF
Referenced from: **path to my framework**
Expected in: /usr/lib/swift/libswiftCoreGraphics.dylib
The code that causes crash is:
keyLabel.frame = bounds.divided(atDistance: labelHeight, from: .maxYEdge).slice
It seems it can't find that CGRect function.
Additional info: I'm on macOS 12.4 and was running my app in mac-catalyst mode. The crash doesn't happen when I run it inside an iPad simulator. But crashes when I run it on my iPad Pro (with iPadOS 15.5). Everything works fine on Xcode 13.4.
I have a similar problem. With another symbol from CoreGraphics library. I'm building an iOS app and it crashes in iOS 15.5 Simulator when built with Xcode 14. Working fine on iOS 16 Simulator or when built with Xcode 13.4.1.