@unixzii found that the bug is because when inputing Chinese, SourceEditorContentView are triggering setNeedsLayout during its view layout life cycle. And he came up with a patch for it.
Hook the layoutSublayers implementation and add a timer to it. If it was called more than 100 times in 0.1 second, ignore the rest of call temporary.
See patch and workaround here. https://github.com/unixzii/XcodePatch
Post
Replies
Boosts
Views
Activity
Current we could workaround by using a custom define in Package.swift
swiftSettings: [.define("SWIFT_PACKAGE")])
Don't need to reinstall of macOS and Xcode.
A solution for me
PATH=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support:"$PATH"
lsregister -f /Applications/Safari.app
A solution for me
PATH=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support:"$PATH"
lsregister -f /Applications/Safari.app