Closed olcayertas closed 4 years ago
Hello.
Have you added the database (db.dat
file) to the project?
We both have tried Bundle.main.path(forResource: "db", ofType: "dat") and Bundle.main.path(forResource: "db.dat", ofType: nil) but both failes. We are only able to initialize reader without using databasePath:
Could you please provide a small demo project so that we can reproduce this issue or modify our project which is available in this repository as we aren't able to reproduce this issue?
but after succesful auto update and document reader initialization when we restart application auto update gives this error: Error during fetching database url from Core
It seems that the bundle id with the test
suffix is missed in the regula.license
file. Therefore, it doesn't initialize.
We have two targets for our application and only difference is their bundle identifiers. The target for test environment has test suffix:
Prod environment bundle identifier: com.company.app Test environment bundle identifier: com.company.app.test The last working combination of auto update and initialize working for Prod but in test we only get one scenario available: Capture
Wo don't add database file. We are using just auto update. I will provide a sample project tomorrow.
If you don't add the db.dat manually to the project, you don't need to indicate databasePath
in the initializeReader
function.
We are using auto update with the latest pod version of the SDK:
Update finishes with succes but we are not able get database. Here our init code:
I we use
Bundle.main.path(forResource: "regula.license", ofType: nil)
as decribed in documents instead ofBundle.main.path(forResource: "regula", ofType: "license")
it failes while getting the licence path. We both have triedBundle.main.path(forResource: "db", ofType: "dat")
andBundle.main.path(forResource: "db.dat", ofType: nil)
but both failes. We are only able to initialize reader without usingdatabasePath
:but after succesful auto update and document reader initialization when we restart application auto update gives this error:
Error during fetching database url from Core
But if we ignore this error and try to initialize document reader it works.We have two targets for our application and only difference is their bundle identifiers. The target for test environment has test suffix:
The last working combination of auto update and initialize working for Prod but in test we only get one scenario available: Capture
Can you help us?