Errors while adding as a SwiftPackage in Xcode 11 beta on MacOs 10.15 #279

Closed
opened 2025-12-29 15:28:07 +01:00 by adam · 4 comments
Owner

Originally created by @darek on GitHub (Jul 13, 2019).

Adding library as a Swift Package works well, but when i tried to build project (even without using library in code) 3 errors appear. Deployment is set to iOS 13, and Swift version to 5.

  • /SourcePackages/checkouts/CoreStore/Sources/CoreStoreSchema.swift:463:39: 'uniquenessConstraints' is only available in iOS 9.0 or newer

  • /SourcePackages/checkouts/CoreStore/Sources/CoreStore+CustomDebugStringConvertible.swift:1209:56: 'uniquenessConstraints' is only available in iOS 9.0 or newer

  • /SmartInventory-bcxwvpbuikyfdpbncadpveegmjff/SourcePackages/checkouts/CoreStore/Sources/DataStack+Migration.swift:573:38: 'startMigrationForStorage(_:sourceModel:destinationModel:mappingModel:migrationType:progress:)' is only available in iOS 10.0 or newer

Originally created by @darek on GitHub (Jul 13, 2019). Adding library as a Swift Package works well, but when i tried to build project (even without using library in code) 3 errors appear. Deployment is set to iOS 13, and Swift version to 5. - **/SourcePackages/checkouts/CoreStore/Sources/CoreStoreSchema.swift:463:39: 'uniquenessConstraints' is only available in iOS 9.0 or newer** - **/SourcePackages/checkouts/CoreStore/Sources/CoreStore+CustomDebugStringConvertible.swift:1209:56: 'uniquenessConstraints' is only available in iOS 9.0 or newer** - **/SmartInventory-bcxwvpbuikyfdpbncadpveegmjff/SourcePackages/checkouts/CoreStore/Sources/DataStack+Migration.swift:573:38: 'startMigrationForStorage(_:sourceModel:destinationModel:mappingModel:migrationType:progress:)' is only available in iOS 10.0 or newer**
adam added the corestore bug label 2025-12-29 15:28:07 +01:00
adam closed this issue 2025-12-29 15:28:07 +01:00
Author
Owner

@jagbryrmiginte commented on GitHub (Jul 20, 2019):

Ran into the same issue. The problem is a missing definition of the minimum deployment target in the Package.swift file. I've forked the current master and fixed this. You can use https://github.com/jagbryrmiginte/CoreStore until @JohnEstropia fixes this in the main repo. Btw., I didn't release a new version, so you'll need to follow the master branch.

@jagbryrmiginte commented on GitHub (Jul 20, 2019): Ran into the same issue. The problem is a missing definition of the minimum deployment target in the Package.swift file. I've forked the current master and fixed this. You can use https://github.com/jagbryrmiginte/CoreStore until @JohnEstropia fixes this in the main repo. Btw., I didn't release a new version, so you'll need to follow the master branch.
Author
Owner

@JohnEstropia commented on GitHub (Jul 21, 2019):

@jagbryrmiginte Thanks for trying out a fix. Would you like to make a PR into the main repo's develop branch from your fork?

@JohnEstropia commented on GitHub (Jul 21, 2019): @jagbryrmiginte Thanks for trying out a fix. Would you like to make a PR into the main repo's develop branch from your fork?
Author
Owner

@jagbryrmiginte commented on GitHub (Jul 21, 2019):

@JohnEstropia Done :)

@jagbryrmiginte commented on GitHub (Jul 21, 2019): @JohnEstropia Done :)
Author
Owner

@darek commented on GitHub (Jul 21, 2019):

Works well, thanks. Now waiting for merge of pull request.

@darek commented on GitHub (Jul 21, 2019): Works well, thanks. Now waiting for merge of pull request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#279