Currently not possible to mark 3rd-party API as affine to main thread

Originator:sash
Number:rdar://32695099 Date Originated:06/10/2017
Status:open Resolved:
Product:Developer Tools Product Version:Version 9.0 beta (9M136h)
Classification:enhancement Reproducible:always
 
Xcode 9 introduces main thread sanitizer detecting calls to App/UIKit not from main thread.
It would be great to be able to mark my API as bound to be called from the main thread.
For example if I'm building custom UI controls and distributing as prebuilt binary, I'd love for consumers to see the same warning when they use my components.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!