How to run a fresh install of the application every time unit tests are run?

后端 未结 2 1514
南旧
南旧 2021-02-05 13:16

I\'ve setup some XCTest unit tests for my application and would like every time I run tests for it to run in a brand new install of the application. Currently when

2条回答
  •  有刺的猬
    2021-02-05 13:39

    In addition to @rintaro's answer, if you set "Provide build settings from" to your app, you can add a generic command, which will keep working when your bundle id changes:

    xcrun simctl uninstall booted ${PRODUCT_BUNDLE_IDENTIFIER}
    

提交回复
热议问题