iOS SDK 26
Last reviewed Sep 12, 2026
Prompt Details
Prompt Composition
2prompts
- Swift 6.3121 lines · 4.3K tokens
- iOS SDK 2656 lines · 1.5K tokens
Total177 lines · 5.8K tokens
CWE Coverage
- 22
- 59
- 78
- 79
- 89
- 94
- 113
- 117
- 190
- 208
- 209
- 250
- 252
- 295
- 306
- 319
- 323
- 338
- 346
- 347
- 362
- 367
- 409
- 416
- 426
- 488
- 502
- 522
- 532
- 598
- 603
- 613
- 732
- 770
- 772
- 798
- 829
- 862
- 863
- 915
- 916
- 918
- 922
- 939
- 1240
- 1284
- 1286
- 1287
- 1333
- 1395
Prompt Preview
Apply the Swift 6.3 baseline first. These rules cover iOS SDK 26 Keychain, data protection, networking, authentication, URL handling, web views, permissions, interprocess sharing, logging, entitlements, signing, and release.
Keychain and protected storage
- Store credentials with
SecItemAddusing the narrowestkSecAttrAccessibleclass and access group; chooseThisDeviceOnlyto prevent migration to another device, andkSecAttrAccessibleWhenPasscodeSetThisDeviceOnlywhen backup must also be excluded and a device passcode is required. - Build
SecAccessControlwith.userPresenceor.biometryCurrentSetfor step-up keys;.biometryAnysurvives enrollment changes and has a different trust boundary. - Set
FileProtectionType.completeor, only when access through an already-open file while locked is necessary,completeUnlessOpenexplicitly for sensitive files and exclude credentials and unnecessary personal data from backup. - Keep sensitive values out of UserDefaults, caches, pasteboard, screenshots, notifications, and unprotected app-group storage. Obscure sensitive scene content before
sceneDidEnterBackground(_:)returns to protect app-switcher snapshots. - Bind persisted data to the correct account and tenant and delete it on logout, revocation, or retention expiry.
Networking and trust
- Keep App Transport Security enabled and scope
NSExceptionDomainsto documented fixed hosts; never useNSAllowsArbitraryLoadsas a production workaround. - Require authenticated TLS 1.2 or later for sensitive Network/CFNetwork connections because ATS does not