Post

Replies

Boosts

Views

Activity

Reply to Undefined symbols: Linker command failed with exit code 1 (use -v to see invocation)
Ok, I looked at the WebRTC source code from the GitHub project, and there is no AppKit support, just UIKit. If you target a macOS app with macCatalyst, then any derived or subclassed UIView or UIKit-based view or controller subclassed view like RTCEAGLVideoView and RTCMTLVideoView will use the correct symbols. For macOS support using the swift package is going to call for a separate Xcode project targeting macCatalyst. For example: UIView class type is UIKit only. To get this on macOS you will have to use a macCatalyst target. open class RTCEAGLVideoView : UIView, RTCVideoRenderer { weak open var delegate: RTCVideoViewDelegate? public init(frame: CGRect, shader: RTCVideoViewShading) public init(coder aDecoder: NSCoder, shader: RTCVideoViewShading) /** @abstract Wrapped RTCVideoRotation, or nil. */ open var rotationOverride: NSValue? }
Dec ’23
Reply to iOS 17.x Memory dirty during runtime
Any crashes outside the doings of the SDK are of your making and responsibility due to the misuse of data types and memory access or incorrect memory management. Your question sounds a bit vague and assumptuous. Please provide a use case in the form of a coded example with which you might be having an issue.
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’23
Reply to print(String(format: "%.2f", 1.255)) => 1.25
It's not about being rounded. It's about suppressing everything after the 2nd decimal place using the format specifier %.2f if you wanted to show the nth position after the decimal place then %.3f will show 1.255, %.5f will show 1.25500 etc etc. 1.255 will not round because there is nothing carry over. 1.256 will round because there is a 1 to carry over.
Topic: App & System Services SubTopic: General Tags:
Dec ’23