Deploy on deployment target concerns

Hi,

Its turned on in Fire. I have deployment target sdk as 9 and target sdk as 12.1

I then have some code in an ios project

    self.navigationItem.searchController :=  SearchController;

The help says

https://developer.apple.com/documentation/uikit/uinavigationitem/2897305-searchcontroller

searchController property is 11.0, shouldnt I be getting a warning when I compile ?

Cheers,
John

Hmm, indeed, this should warn:

@property (nonatomic, retain, nullable) UISearchController *searchController API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(tvos);

but I can reproduce and conform that it does not. yet (picking an example from one of my own projects)

  self.navigationItem.searchController := nil;
  var x := UIFont.monospacedDigitSystemFontOfSize(5) weight(UIFontWeightRegular) // NH0 "class method UIKit.UIFont.monospacedDigitSystemFontOfSize(fontSize: CoreGraphics.CGFloat) weight(weight: UIKit.UIFontWeight): not nullable UIKit.UIFont" might not be available on deployment targets lower than iOS 9.0
                                                                                 // NH0 "UIFontWeightRegular" might not be available on deployment targets lower than iOS 8.2

some deployment target warnings do show. I’ll need to log this, sounds like a bug in the import.

that one is defined as

+ (UIFont *)monospacedDigitSystemFontOfSize:(CGFloat)fontSize weight:(UIFontWeight)weight NS_AVAILABLE_IOS(9_0);

Seems like Apple introduced a new way of marking these, without telling anyone (API_AVAILABLE vs NS_AVAILABLE_IOS).

Thanks, logged as bugs://81641

bugs://81641 got closed with status fixed.

bugs://81641 got reopened.

bugs://81641 got closed with status fixed.