Repository navigation
Conversation
| - AEPCore (< 6.0.0, >= 5.0.0) | ||
| - AEPServices (< 6.0.0, >= 5.0.0) | ||
| - AEPCore (5.10.0): | ||
| - AEPCore (5.12.0): |
There was a problem hiding this comment.
Need to set again with new core major version
ishwetansh
left a comment
There was a problem hiding this comment.
iOS 27 / Swift 6 readiness review
Reviewed commit 82fa34f94124251abdbd256c86832bb187c99a84 against dev-ios27.
Assessment: changes and explicit readiness prerequisites remain. The inconsistent source/binary minimum-OS contract is attached inline. The existing dependency-version comment is not duplicated.
Verified: Xcode 27.1 / Swift 6.4 / SDK 27.1; 16 focused unit tests and 29 functional tests passed on iOS 27.0 in shipped settings. A further 29 functional tests passed with the owned library in actual Swift 6 mode. Owned-library Debug/Release Swift 6 builds, Swift 6 CocoaPods/SPM consumers, and a default tvOS 27 SDK build passed using released dependencies. The current-head CI registration-timeout case passed locally; its regression causality remains unproven.
Important Swift 6 runtime blocker (pre-existing, not introduced by this diff): a real @MainActor Swift 6 consumer calling Identity.getExperienceCloudId with an ordinary inferred-isolation completion crashes with _dispatch_assert_queue_fail / Swift executor checking on com.adobe.OperationOrderer(EventHub). The stack reaches Identity+PublicAPI.swift:47. The unchanged public completion is not @Sendable, allowing the caller's actor isolation to be inferred even though the SDK invokes it on its event queue. An explicit @Sendable consumer callback avoids the crash; UI work must then deliberately hop to its actor. This requires an API/compatibility strategy before claiming unrestricted Swift 6 readiness, not just a compile pass.
Cross-SDK evidence: a Swift 6 consumer built against all five exact PR heads and passed registration/ECID/reset smoke testing with the explicit callback workaround. An all-owned-target Swift 6 Release build remains blocked by Core's mobileCoreInitializer and EventHub.shared Release declarations. These are separate from the known strict UnitTests blocker with released Core 5.12.0.
Scope: the submitted library and UnitTests targets still use Swift 5, despite the PR description claiming all-target adoption. No full-suite, physical-device, tvOS 27-runtime, live Edge-network, or iOS 27.1-runtime sign-off is implied.
| INFOPLIST_FILE = Sources/Info.plist; | ||
| INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | ||
| IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
| IPHONEOS_DEPLOYMENT_TARGET = 15.0; |
There was a problem hiding this comment.
[P2] Apply the new deployment floor to both source distribution manifests
This raises the framework artifact's minimum iOS version to 15, but Package.swift still declares iOS/tvOS 12 and AEPEdgeIdentity.podspec still declares both deployment targets as 12. The Podfile post_install change only affects this repository's workspace; it does not run for customers installing the pod or Swift package. Consequently the same SDK release continues to be advertised/resolved for iOS/tvOS 12-14 through source distribution while its Xcode/XCFramework artifact requires 15. Update both public manifests with the deployment-floor change so supported platforms are consistent across installation methods.
There was a problem hiding this comment.
Fixed in 1a49cb6: Package.swift now declares platforms: [.iOS(.v15), .tvOS(.v15)] and AEPEdgeIdentity.podspec sets both deployment_targets to 15.0, matching the Xcode project (including the project-level configs, which were still 12.0) and the Podfile. The test scripts (Script/test-podspec.sh, Script/test-SPM.sh) also use 15.0 now.
- Set minimum iOS/tvOS deployment target to 15.0 (project + Podfile post_install) - Move all targets to Swift 6 - Replace deprecated @UIApplicationMain with @main in TestApp AppDelegate - Update MockExtension for Swift 6 concurrency - Bump AEPCore/AEPServices/AEPIdentity pods to 5.12.0
…iOS/tvOS 15.0 - Package.swift: swift-tools-version 5.10, platforms iOS/tvOS .v15 - AEPEdgeIdentity.podspec: swift_version 5.10, iOS/tvOS deployment 15.0 - Project-level IPHONEOS/TVOS_DEPLOYMENT_TARGET 12.0 -> 15.0 - Podfile: platform iOS 15.0; refresh Podfile.lock (AEPCore 5.13.0, checksum) - Script/test-SPM.sh and Script/test-podspec.sh: 5.10 tools / 15.0 targets - SampleApps/TestApp/Makefile: IPHONEOS_DEPLOYMENT_TARGET 15.0 - README: Xcode 15.3+, Swift 5.10+, iOS/tvOS 15.0+
Swift 6 apps crashed (_dispatch_assert_queue_fail on com.adobe.OperationOrderer(EventHub), Identity+PublicAPI.swift:47) when calling Identity.getExperienceCloudId from @mainactor code with a plain closure: the closure was inferred main-actor isolated, but the SDK invokes it on the EventHub queue. - getExperienceCloudId, getUrlVariables, getIdentities: completion is now @escaping @sendable, matching AEPCore/AEPIdentity - @preconcurrency keeps existing Swift 6 clients building (warnings only) - No ABI change: exported symbols identical to main (107/107) in Swift 5 and Swift 6 builds - TestApp: hop to main queue before updating SwiftUI state
Swift 6 readiness was validated with Swift 6 builds and a Swift 6 consumer app; the project itself stays in Swift 5 language mode.
|
Thanks @ishwetansh, addressed in 1a49cb6, 1d97835 and 69750e8:
Validation details are in the updated description. |
|
@shushinde , can you check the CI, the functional tests are broken |
Hi @ishwetansh , |
Smoke test results for AEPEdgeIdentityWhatI ran the Edge, Edge Identity and Edge Consent smoke tests from the wiki against this branch at How
Result
Network retry and the Assurance UI need a manual check and weren't part of this run. |
What this PR does
Gets AEPEdgeIdentity ready for iOS 27 / Xcode 27 and for apps written in Swift 6.
Minimum iOS and tvOS is now 15.0. It's set the same way everywhere:
Package.swift, the podspec, the Xcode project, thePodfileand the test scripts. Xcode 27 won't build anything below 15.0, somain(still on 12.0) no longer builds with it.Minimum toolchain is now Swift 5.10 / Xcode 15.3.
Package.swiftuses tools version 5.10, the podspec setsswift_version = '5.10', and the README lists the new requirements.Fixes a crash in Swift 6 apps. If a Swift 6 app called
getExperienceCloudId,getUrlVariablesorgetIdentitiesfrom SwiftUI or UIKit code with a regular closure, the app crashed. Swift treated the closure as main-thread-only, but the SDK calls it from its own background queue. These three completion handlers are now marked@Sendable(with@preconcurrency), the same fix AEPCore uses.mainexactly.Also:
@maininstead of the deprecated@UIApplicationMain.SWIFT_VERSION = 5.0). Swift 6 support was checked by building in Swift 6 mode and running a Swift 6 app.Testing
Tested on Xcode 27 with iOS 27 and tvOS 27 simulators, using local builds of the dependency PRs listed below.
mainThe smoke test follows the Mobile SDK smoke tests – Edge / Edge Identity / Edge Consent wiki page. It covered ECID and URL variables, updating, reading and removing identities, resetting identities, location hint, consent (yes, no, pending, and repeated requests), lifecycle events reaching Edge, and datastream overrides. Network retry and the Assurance UI weren't covered.
Dependencies and release
This is one of five PRs that ship together. All of them target
dev-ios27:Release in that order: RulesEngine → Core → EdgeIdentity → Edge → EdgeConsent. Each one should be published before the next is released.
Before releasing EdgeIdentity:
MARKETING_VERSIONin the Xcode project andEXTENSION_VERSIONinIdentityConstants.swift; theupdate-versionsworkflow updates all three.Package.swift, so apps can't pick up an older Core. Theupdate-versionsworkflow can do this with itscore-dependencyinput.Podfile.lockagainst the published pods.Edge and EdgeConsent will need the same updates for their own dependencies once the releases before them are out.
Version number: raising the minimum OS from 12 to 15 drops apps that still target iOS/tvOS 12–14. All five SDKs make this change, so pick the same kind of version bump (minor or major) for all of them.
EdgeIdentity doesn't use any new Core API. The Core minimum is raised so the whole set ships and gets resolved together.