The issue regarding compilation with lower versions of Xcode

In my code, I used the newly added class AssetPackManager in Xcode 26. When compiling with Xcode 16, it would report an error saying "Cannot find 'AssetPackManager' in scope". Swift cannot use __IPHONE_OS_VERSION_MAX_ALLOWED. How to solve this problem?

I probably miss something.

Why do you try to compile with Xcode 16 and not directly Xcode 26, as you have added a class defined in Xcode 26 ?

Did you set an OS teraget ? (__IPHONE_OS_VERSION_MAX_ALLOWED)

The issue regarding compilation with lower versions of Xcode
 
 
Q