Software Dev

Apple Thread Utils

Apple has a really nice utility straightforwardly called the Main Thread Checker. It detect uses of APIs on a background thread that really should be on the main thread.

Updating UI on a thread other than the main thread is a common mistake that can result in missed UI updates, visual defects, data corruptions, and crashes.

And someone has put together a page documenting how to configure the Main Thread Checker for your own specific needs. It’s straightforwardly called Configuring the Main Thread Checker.

πŸ‘‰ Configuring the Main Thread Checker

Enjoy getting rid of some flakey code in your app! Via iOS Dev Weekly.

P.S. There’s another utility from Apple called Thread Sanitizer, to “Audit threading issues in your code”. πŸ€·πŸ»β€β™‚οΈ

The Scheme Editor's Arguments Tab

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.