ios - How can I have Xcode warn other developers of methods not supported by there build target? -
i upgrading open source project maintain utilize latest ios 8 sdks. this, introducing new methods not work @ ios 7 , previous operating systems. specify @interface in such way implementing library see warning in xcode if seek utilize 1 of these methods build target below ios 8.
for example, if had build target of ios 7, , tried phone call myspecialios8method, should warning flag on line of code saying "warning: myspecialios8method not available ios 7, utilize crappierios7compatiblemethod instead maintain compatibility". these warnings should not visible ios 8 build target.
does have ideas this?
thanks!
using __ attribute__, can warn when deprecated methods used.
here answer help you.
ios objective-c xcode
No comments:
Post a Comment