Error when updating to xcode 15 #429

Open
opened 2025-12-29 15:31:39 +01:00 by adam · 1 comment
Owner

Originally created by @willmoreira on GitHub (Apr 4, 2024).

Error when updating to xcode 15, I use the CoreStore lib in version 7.3.1 with Xcode 14.3 in my project, when I upgrade the version to xcode 15 in debug it doesn't run and gives the error Command SwiftCompile failed with a nonzero exit code, in release mode it runs normally.
When I update to version 9.2.0 of the library and xcode 15, minimum target iOS version 13 I have this error in this method

#if swift(>=5.9)
return unsafeDowncast(object, to: self) //crash
#else
// unsafeDowncast fails debug assertion starting Swift 5.2
return _unsafeUncheckedDowncast(object, to: self)
#endif

I have the CoreStore 9.2.0 lib and in this code snippet it breaks, before it didn't break
Thread 1: Fatal error: invalid unsafeDowncast this is the error

I'm worried because I can't run debug version 7.3.1 with xcode 15, and when I raise the lib version to 9.0.0 or higher it breaks when trying to create an object

Originally created by @willmoreira on GitHub (Apr 4, 2024). Error when updating to xcode 15, I use the CoreStore lib in version 7.3.1 with Xcode 14.3 in my project, when I upgrade the version to xcode 15 in debug it doesn't run and gives the error Command SwiftCompile failed with a nonzero exit code, in release mode it runs normally. When I update to version 9.2.0 of the library and xcode 15, minimum target iOS version 13 I have this error in this method #if swift(>=5.9) return unsafeDowncast(object, to: self) //crash #else // unsafeDowncast fails debug assertion starting Swift 5.2 return _unsafeUncheckedDowncast(object, to: self) #endif I have the CoreStore 9.2.0 lib and in this code snippet it breaks, before it didn't break Thread 1: Fatal error: invalid unsafeDowncast this is the error I'm worried because I can't run debug version 7.3.1 with xcode 15, and when I raise the lib version to 9.0.0 or higher it breaks when trying to create an object
Author
Owner

@JohnEstropia commented on GitHub (Apr 5, 2024):

Can you isolate the issue in a smaller project?

@JohnEstropia commented on GitHub (Apr 5, 2024): Can you isolate the issue in a smaller project?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#429