PSA: The Static Analyzer in Xcode 7.3 learned a few new tricks that are off by default.pic.twitter.com/L5FxL8Cmcx
When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more
… Instead, it warns when using raw, unlocalized NSStrings into UI methods. Which is cool, but less useful.
… Now how does clang know which API is “UI”? Behold: http://clang.llvm.org/doxygen/LocalizationChecker_8cpp_source.html#l00154 …
Re: https://twitter.com/_nb/status/727785415042842625 … Compiler internals shouldn’t know details about UI frameworks, but I’m not sure how I would do.
a custom __attribute((ui_visible_string))? or maybe just typedef NSString NSUserVisibleString ?
@_nb Mais y a un NSDefaults pour afficher en rouge les chaînes non localisées dans la langue courante lors de l'exécution, non ?
@packagesdev Oui, et pour les doubler, et pour les noter dans la console. Mais je voudrais un truc à la compilation.
@_nb Avec une custom build rule, genstrings et une comparaison sur les .strings dispo, non ?
@packagesdev C’est ce qu’on fait, à la main, chacun de notre côté. Plus ou moins bien.
@_nb J'ai celle-ci en bas, je sais pas si ça compte ou si c'est parce qu'elle est fournie à distance/par un tierspic.twitter.com/3XQrVfOOJ7
@tomn94 ahah, ce cas-là est *compliqué*. Je regarderai lundi. (merci
)
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.