vendredi 10 mars 2017

iOS - Exclude Test files from Release build

While developing an iOS application, I am required to run unit & ui tests on a preloaded database. So, I planned to include the DB file preloaded in the App only for DEBUG build as UI/Unit tests will run only with DEBUG build. How can i exclude the DB file from Release build?

Currently I can detect if the host app is running for testing or not using following way,

http://ift.tt/2m9qX4k,

but how can exclude and include database.db using this technique?

A little guidance will really be appreciated.

Aucun commentaire:

Enregistrer un commentaire