Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ios Sdk Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-ios-sdk-knowledge-patch-nevaberry-plugins)
---
name: ios-sdk-knowledge-patch
description: iOS SDK
version: "iOS 26 / Xcode 26"
license: MIT
metadata:
author: Nevaberry
---
# iOS SDK Compatibility Guidance
Load this skill when updating Apple-platform apps, resolving SDK-linked behavior
changes, troubleshooting Xcode builds, or preparing App Store submissions.
Use the quick reference for common migration decisions and the topic files for
the complete API details, conditions, and workarounds.
## Reference index
| Reference | Topics |
| --- | --- |
| [Toolchain, build, and testing](references/toolchain-build-and-testing.md) | Xcode requirements, compilation caching, explicit modules, package builds, diagnostics, Simulator issues, watch installation |
| [C++, Swift interop, and language runtime](references/cpp-and-language-interop.md) | C++ templates and layout, Swift interop, hvf availability, libxml2 allocation, fileports, nonatomic properties |
| [Persistence, Foundation, and commerce](references/persistence-foundation-and-commerce.md) | Core Data, localization, dates, string byte counts, age ranges, StoreKit, AdAttributionKit |
| [Networking, security, and distribution](references/networking-security-and-distribution.md) | HTTP loading, TLS, IKEv2, semaphores, Push to Talk, APNs, App Store requirements, receipts, reports |
| [SwiftUI, UIKit, and text](references/swiftui-uikit-and-documents.md) | Concurrency, control sizing, navigation, gestures, text direction, TextKit, Writing Tools, search layout |
| [Graphics, media, and spatial APIs](references/graphics-media-and-spatial.md) | Metal residency and debugging, broadcast memory, Nearby Interaction, RealityKit device support |
## Breaking changes and deprecations
### Remove legacy Core Data ubiquity options
Remove these persistent-store options:
- `NSPersistentStoreUbiquitousContentNameKey`
- `NSPersistentStoreUbiquitousContentURLKey`
- `NSPersistentStoreUbiquitousPeerTokenOption`
- `NSPersistentStoreRemoveUbiquitousMetadataOption`
- `NSPersistentStoreUbiquitousContainerIdentifierKey`
- `NSPersistentStoreRebuildFromUbiquitousContentOption`
Opening a store with these keys produces errors for apps rebuilt with the iOS or
macOS 26 SDK and warnings for older builds. Removing them preserves access to the
local store and ends legacy sync.
### Respect Core Data concurrency annotations
The 26 SDK imports `NSManagedObject` as nonisolated and non-Sendable, and
`NSManagedObjectContext` as nonisolated and Sendable. Context `perform` methods
now require Sendable closures. Keep managed objects on their context's queue and
use the context to schedule work there.
### Replace libxml2 custom allocation
The SDK deprecates the libxml2 custom allocation API. Replace `xmlMalloc` and
`xmlMallocAtomic` with `malloc`, `xmlRealloc` with `realloc`, `xmlFree` with `free`,
and `xmlMemStrdup` with `strdup`. Remove assignments to those allocator globals
and calls to `xmlMemSetup`, `xmlMemGet`, `xmlGcMemSetup`, and `xmlGcMemGet`.
Both libxml2 and libxslt now use the system allocator internally.
### Update networking and Push to Talk integration
For apps linked with the iOS or macOS 26 SDK, the default minimum for URLSession
and Network framework connections rises from TLS 1.0 to 1.2. For a legacy endpoint
that cannot be updated, configure the minimum explicitly with
`URLSessionConfiguration.tlsMinimumSupportedProtocolVersion` or
`sec_protocol_options_set_min_tls_protocol_version`.
Update IKEv2 client and server proposals to drop DES, 3DES, SHA1-96, SHA1-160,
and Diffie–Hellman groups below 14; these choices are unsupported on version 26.
Apps built with the iOS 26 SDK or later must replace
`com.apple.developer.pushkit.unrestricted-voip.ptt` with the Push to Talk framework
introduced in iOS 16.
### Handle localization and API deprecations
Interpolating nonlocalized types into `LocalizedStringResource`,
`String(localized:)`, or `AttributedString(localized:)` now produces a deprecation
warning. Interpolate a localized value, or use `String(describing: value)` when
the nonlocalized representation is intentional.
The 26 SDK formally deprecates `UIScreen.mainScreen` on iOS, tvOS, and visionOS.
Xcode 16.4 restores the base `std::char_traits` template removed in 16.3, so
`std::basic_string<long long>` compiles again. The base template remains
deprecated and is slated for removal.
### Enumerate all product entitlements
Replace deprecated `Transaction.currentEntitlement(for:)` with
`Transaction.currentEntitlements(for:)`. The latter returns all transactions that
entitle the user to the product, including Family Sharing transactions the
single-result API can miss.
```swift
var verifiedEntitlements: [Transaction] = []
for await result in Transaction.currentEntitlements(for: product.id) {
if case .verified(let transaction) = result {
verifiedEntitlements.append(transaction)
}
}
```
`AppTransaction.originalPlatform` uses `AppStore.Platform`. Handle watchOS under
the `iOS` case because the separate `watchOS` case was removed.
## Common API changes
### Control introductory offers and attribution
Pass a compact JWS signed by your server in
`Product.PurchaseOption.introductoryOfferEligibility(compactJWS:)` to block
redemption or apply the offer even when the customer would otherwise be
ineligible. `isEligibleForIntroOffer(for:)` returns `false` when the user has no
signed-in App Store account; have the user sign in before requesting again.
Multiple AdAttributionKit re-engagement conversions can run concurrently. Pass
the conversion tag from the re-engagement URL parameter to `updateConversionValue`
to update the matching conversion.
### Opt in to URLSession HTTP loading
Set the new mode on the configuration before creating the session. A future
release will make this mode the default.
```swift
let configuration = URLSessionConfiguration.default
configuration.usesClassicLoadingMode = false
let session = URLSession(configuration: configuration)
```
### Adjust SwiftUI sizing, navigation, and gestures
`ControlSize` is comparable and `controlSize(_:)` accepts a range to clamp the
size inherited from the environment. With the iOS and macOS 26 SDKs, pickers
that render as buttons fit their content by default; apply
`.buttonSizing(.flexible)` to fill the available width.
With the version 26 SDKs, a `NavigationLink` forms a single view in view-list
contexts. Apply `containerValue` to the link itself when the enclosing container
needs a value previously set on the label or by the link's `ButtonStyle`.
With the iOS, macOS, tvOS, and visionOS 26 SDKs, plain SwiftUI gestures yield to a
view's existing UIKit and AppKit recognizers as well as its SwiftUI gestures.
Use `highPriorityGesture(_:isEnabled:)` to take precedence or
`simultaneousGesture(_:isEnabled:)` for equal priority.
On iOS and iPadOS, place inspector columns in a `NavigationSplitView` hierarchy
for presentation. Rebuilding with the 26 SDK can also make inspector toolbar
items depend on navigation.
### Control paragraph writing direction
`Text`, `TextEditor`, and `TextField` now derive each paragraph's base direction
from its contents. Set `AttributedString.writingDirection` for individual
paragraphs, or apply `.writingDirection(strategy: .layoutBased)` to follow the
view's layout direction throughout.
## Build and testing quick reference
Enable compilation caching for Swift and C-family code through **Enable
Compilation Caching** or the per-user project settings in Xcode 26.
Xcode 26 enables Swift explicit modules by default, including for targets using
Swift/C++ interop. Language modes older than Swift 5 keep their disabled default;
`SWIFT_ENABLE_EXPLICIT_MODULES = NO` opts a target out.
Xcode 26 downloads a prebuilt swift-syntax library by default for Swift macro
builds. When troubleshooting an affected build involving `_SwiftSyntaxCShims` or
legacy preview execution, quit Xcode, disable prebuilts with the command below,
clear the project's DerivedData, and rebuild after reopening Xcode.
```sh
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts NO
```
Specify a destination for Swift Testing attachments when running a package's tests:
```sh
swift test --attachments-path ./test-attachments
```
## Distribution requirements
Since April 28, 2026, App Store Connect uploads for iOS, iPadOS, tvOS, visionOS,
and watchOS require Xcode 26 or later and at least the version 26 SDK for the
app's platform.
Since January 31, 2026, submitting updates requires answering the revised
age-rating questions for each app under **App Information** in App Store Connect.
App updates for EU distribution have required trader status since October 16,
2024. Since February 17, 2025, an app can stay available in EU storefronts only
after its trader status is provided and verified.
Add the SHA-2 `USERTrust RSA Certification Authority` root to the trust store used
by your APNs provider. The APNs server certificate changed in sandbox on January
20, 2025 and in production on February 24, 2025.
See the networking, security, and distribution reference for macOS upload
attributes, receipt certificates, REST API migration, Game Center setup, and
subscription report requirements.