Objective Framework target with minimum iOS version 12 works with app target with minimum iOS ver 9, how?

I have a Objective-C framework target which has minimum iOS version set to 12.
I imported this framework in a app which has minimum iOS version set to 9.
When I compile the app then is compiles successfully without any errors, I was expecting that I would get a error like:

"Compiling for iOS 9.0, but module 'MyFramework' has a minimum deployment target of iOS 12.0"

But strangely I do not get this error and I am able use this framework irrespective of the minimum iOS version specified.

How is this working? Is this expected for a pure Objective-C framework target?

I was expecting that I would get a error like

I think this is just a case where the Xcode isn’t doing anything special to prevent you from shooting yourself in the foot. If you’d like to see improvements here, I encourage you to file an enhancement request outlining your suggestion.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Hi,
I have submitted a bug via feedback assistant. The bug number is : FB8811750

What is still don't understand is that this happens only for Objective-C framework. If I have a framework target developed in Swift and if I import this framework in another swift based application then I actually get this error at compile time.

The bug number is : FB8811750

Thanks.

What is still don't understand is that this happens only for
Objective-C framework.

I don’t find that particularly surprising. Swift’s runtime is a lot more complex than Objective-C’s — and has been subject to an intense evolution effort since it was introduced — and thus it makes sense for the Swift compiler to check this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Objective Framework target with minimum iOS version 12 works with app target with minimum iOS ver 9, how?
 
 
Q