[SwiftData]Why did not I receive willMigrate and didMigrate callbacks during the schemaMigrationPlan

I used Schema and MigrationPlan to initialize the Model Container.

Then I modified the Schema and created a MigrationStage through the custom method, which was configured in the stages array of the SchemaMigrationPlan.

But when I run the app, I don't receive the willMigrate and didMigrate callbacks


Xcode Version: 15.0 beta (15A5160n)

MacOS: 13.3.1 (a) (22E772610a)

I'm also facing same issue

It seems this is related to using CloudKit. See more here: https://forums.developer.apple.com/forums/thread/744491

[SwiftData]Why did not I receive willMigrate and didMigrate callbacks during the schemaMigrationPlan
 
 
Q