Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot find 'SyncInfo' in scope' when loaded via SPM #129

Closed
AkashlalBol opened this issue Mar 2, 2022 · 3 comments
Closed

'Cannot find 'SyncInfo' in scope' when loaded via SPM #129

AkashlalBol opened this issue Mar 2, 2022 · 3 comments

Comments

@AkashlalBol
Copy link

Added Contentful and ContentfulPersistence SDKs via SPM, I am stuck at
let persistenceModel = PersistenceModel( spaceType: SyncInfo.self, assetType: Asset.self, entryTypes: entryTypes )
Here SyncInfo.self line gives an error "Cannot find SyncInfo in scope"

@AkashlalBol
Copy link
Author

Tried with Pod, got the same error
"Cannot find SyncInfo in scope"

@AkashlalBol
Copy link
Author

This issue is arising by adding
let persistenceModel = PersistenceModel(spaceType: SyncInfo.self, assetType: Asset.self, entryTypes: entryTypes)

as given in documentation https://github.com/contentful/contentful-persistence.swift#usage

@AkashlalBol
Copy link
Author

Update: Found out I had to create a SyncInfo NSManagedObject entity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant