Tag

api-availability

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jun 9, 2021 · Mobile Development

Resolving Xcode 12.5 App Extension Compilation Errors with Swift @available and API Availability

This article explains why Xcode 12.5 reports compilation failures for iOS app extensions when APPLICATION_EXTENSION_API_ONLY is true, demonstrates how to restructure shared frameworks and use Swift’s @available and #available annotations (as well as Objective‑C NS_EXTENSION_UNAVAILABLE_IOS) to mark non‑extension‑compatible APIs, and provides practical code examples for a clean, minimal‑impact solution.

App ExtensionSwiftXcode
0 likes · 13 min read
Resolving Xcode 12.5 App Extension Compilation Errors with Swift @available and API Availability