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)
---
name: ios-sdk-knowledge-patch
description: iOS SDK
version: "iOS 26 / Xcode 26"
license: MIT
metadata:
author: Nevaberry
---
# iOS SDK Knowledge Patch
Use this skill when updating Apple-platform code, resolving build or runtime
compatibility issues, or preparing App Store submissions. Open the relevant
reference for detailed conditions, platform distinctions, and examples.
## Reference index
| Reference | Topics |
| --- | --- |
| [Commerce, distribution, and services](references/commerce-distribution-and-services.md) | StoreKit, AdAttributionKit, App Store submissions and automation, age ranges, Nearby Interaction, broadcast extensions, device support, enterprise apps |
| [Language, runtime, and interoperability](references/language-runtime-and-interop.md) | C allocation and availability, fileports, C++ layout and Swift interop, dates, UTF-16, nonatomic properties, Metal |
| [Networking, data, and security](references/networking-data-and-security.md) | Core Data, TLS, IKEv2, URLSession loading, Push to Talk, APNs trust, named semaphores |
| [Toolchain, build, and testing](references/toolchain-build-and-testing.md) | Xcode requirements, explicit modules, caching, package builds, linker and header issues, diagnostics, simulators, watch installation |
| [UI, text, scenes, and documents](references/ui-text-scenes-and-documents.md) | SwiftUI controls and navigation, gestures, search, localization, text direction, TextKit, Writing Tools |
## Breaking changes and deprecations
### Remove legacy Core Data ubiquity options
Remove the legacy ubiquity keys listed in the networking and data reference
from persistent-store options. Opening a store with those keys produces errors
for apps rebuilt with the iOS or macOS 26 SDK and warnings for older builds.
Removing the options preserves access to the local store and ends legacy sync.
### Replace libxml2 custom allocators
The 18.4 SDK deprecates the libxml2 custom allocation API. Replace its allocator
calls as follows:
| Deprecated allocator | Replacement |
| --- | --- |
| `xmlMalloc`, `xmlMallocAtomic` | `malloc` |
| `xmlRealloc` | `realloc` |
| `xmlFree` | `free` |
| `xmlMemStrdup` | `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.
### Enumerate all product entitlements
Replace the deprecated `Transaction.currentEntitlement(for:)` with
`Transaction.currentEntitlements(for:)`. The plural API 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)
}
}
```
### Update Push to Talk and network configuration
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.
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.
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`.
### Address localization and screen 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.
## API and behavior quick reference
### Keep Core Data work on its context's queue
The 26 SDK imports `NSManagedObject` as nonisolated and non-Sendable, and
`NSManagedObjectContext` as nonisolated and Sendable. Context `perform` methods
now require Sendable closures, so keep managed objects on their context's queue
and use the context to schedule work there.
### Override introductory-offer eligibility
Pass a compact JWS signed by your server in
`Product.PurchaseOption.introductoryOfferEligibility(compactJWS:)`. The signed
payload can block redemption or apply the offer even when the customer would
otherwise be ineligible.
```swift
let result = try await product.purchase(options: [
.introductoryOfferEligibility(compactJWS: signedEligibility)
])
```
`isEligibleForIntroOffer(for:)` returns `false` when the user has no signed-in
App Store account. Have the user sign in before requesting eligibility again.
### Opt in to the new HTTP loading mode
Set 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)
```
### Adapt SwiftUI controls and navigation
- `ControlSize` is comparable and `controlSize(_:)` accepts a range to clamp
the size inherited from the environment, such as `.controlSize(.small ... .large)`.
- Pickers that render as buttons fit their content by default with the iOS and
macOS 26 SDKs. 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`.
- 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.
- 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.
- The `onPreferenceChange` callback no longer requires `@Sendable`, removing the
extra restriction on closures that access main-actor-isolated values.
### Set 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
### Configure modules and caching
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,
and `SWIFT_ENABLE_EXPLICIT_MODULES = NO` opts a target out.
Enable compilation caching for Swift and C-family code through the **Enable
Compilation Caching** build setting or through the per-user project settings.
### Troubleshoot automatic swift-syntax prebuilts
Xcode 26 downloads a prebuilt swift-syntax library by default for Swift macro
builds. If troubleshooting an affected build involving `_SwiftSyntaxCShims` or
legacy preview execution, quit Xcode, disable prebuilts, clear the project's
DerivedData, and rebuild after reopening Xcode.
```sh
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts NO
```
### Save Swift Testing attachments
Specify a destination for Swift Testing attachments when running a package's tests:
```sh
swift test --attachments-path ./test-attachments
```
## Submission quick reference
- 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.
- Since February 18, 2025, uploading a macOS app for TestFlight or App Store
distribution requires removing the `com.apple.quarantine` extended attribute
from all files in the app bundle.
The commerce reference also covers Game Center submission requirements,
receipt-signing certificates, App Store Connect REST API migration, and
subscription report versions.