Hi Folks, hoping someone might be able to point me in the right direction with an issue.
I was able to successfully clone the ReaderSDKSample project, go through the configuration and setup of the project locally (get repo password, download and install the SDK, etc.) and take a live credit card payment via the card reader on an iPad Mini.
I’m subsequently trying to create a new project from scratch, to get to the same point, however I am running into an error when trying to initialize the SDK in my AppDelegate.
SQRDReaderSDK.initialize(applicationLaunchOptions: launchOptions)
I’m seeing a whole screed of ‘Failed to load optimized model path’ error messages, per below,
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/SquareAccountResources.bundle/Accounts.momd/Accounts.omo'**
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/LobLogResources.bundle/LogEvent.momd/LogEvent.omo'**
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/SquareTransactionsResources.bundle/StoredPayments.momd/StoredPayments 3.omo'**
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/SquareTransactionsResources.bundle/Transactions.momd/Transactions.omo'**
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/SquareTransactionsResources.bundle/Payer.momd/Payer.omo'**
**CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/082F0E1C-6B76-423B-B496-CF7F3C50F0F3/TestPermissionsRequest.app/Frameworks/SquareReaderSDK.framework/SquareAccountResources.bundle/Accounts.momd/Accounts.omo'**
**2020-07-21 12:42:14.568315-0400 TestPermissionsRequest[1124:767165] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/042FD3F7-6718-4108-838A-88A8859E7606/Library/Application Support/SquareReaderSDK/RegisterAccounts.sqlite**
**2020-07-21 12:42:14.568514-0400 TestPermissionsRequest[1124:767165] [logging] invalidated open fd: 14 (0x11)**
**2020-07-21 12:42:14.571172-0400 TestPermissionsRequest[1124:767180] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/042FD3F7-6718-4108-838A-88A8859E7606/Library/Application Support/SquareReaderSDK/RegisterAccounts.sqlite-shm**
**2020-07-21 12:42:14.571437-0400 TestPermissionsRequest[1124:767180] [logging] invalidated open fd: 16 (0x11)**
**2020-07-21 12:42:14.573968-0400 TestPermissionsRequest[1124:767180] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/042FD3F7-6718-4108-838A-88A8859E7606/Library/Application Support/SquareReaderSDK/RegisterAccounts.sqlite-wal**
**2020-07-21 12:42:14.574165-0400 TestPermissionsRequest[1124:767180] [logging] invalidated open fd: 15 (0x11)**
I’ve recreated the project from scratch twice and get the same errors each time. I’m probably missing something glaringly obvious, but would greatly appreciate any insight if someone has seen this before!
Many thanks,
Shaun Hurley