Xcode 13.3 failed to compile project deploy to iOS 11.0 with Intent definition contains custom types, error: 'Type' is only available in iOS 12.0 or newer.

My project deploy target is iOS 11.2, I have an intent file for widget supports, which contains a custom type.

The project works with Xcode 13.2.1, when using Xcode 13.3 beta (13E5086k), the generated file contains an extra extension without available decorator, which cause a compile time error: 'IntentType' is only available in iOS 12.0 or newer

public extension IntentType { 
    override class var supportsSecureCoding: Bool { true }
}

Compile project using Xcode 13.2.1:

Compile project using Xcode 13.3:

I've composed a new feedback with a sample project: FB9889772 (Xcode 13.3 failed to compile project deploy to iOS 11.0 with Intent definition contains custom types, error: 'IntentClass' is only available in iOS 12.0 or newer.)

Answered by Alen Liang in 707998022

Xcode 13.3 fixed this. Hooray~!

Why don't you target iOS 12 ?

Accepted Answer

Xcode 13.3 fixed this. Hooray~!

Xcode 13.3 failed to compile project deploy to iOS 11.0 with Intent definition contains custom types, error: 'Type' is only available in iOS 12.0 or newer.
 
 
Q