Post

Replies

Boosts

Views

Activity

Reply to XCode 13.3 stuck when input Chinese in lldb console
@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
Apr ’22
Reply to Safari Web Extension Not Working for User
A solution for me PATH=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support:"$PATH" lsregister -f /Applications/Safari.app
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’21
Reply to After converting a Web Extension using safari-web-extension-converter, running extension fails with SFErrorDomain code 1
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
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’21
Reply to [Bug] SWIFT_PACKAGE not defined in iPad Playgrounds 4
Current we could workaround by using a custom define in Package.swift swiftSettings: [.define("SWIFT_PACKAGE")])
Replies
Boosts
Views
Activity
Feb ’22
Reply to XCode 13.3 stuck when input Chinese in lldb console
@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
Replies
Boosts
Views
Activity
Apr ’22