Linker error when accessing application module in UI tests in Xcode 7.1

前端 未结 3 1180
野的像风
野的像风 2020-12-08 07:26

I\'m trying to implement some UI tests in my project. Everything goes fine as long as I keep it simple: record the test case, add some asserts, then run the test. This works

3条回答
  •  北海茫月
    2020-12-08 07:53

    The UI tests are a separate module from the app, therefore not run inside your app as a logic test would. The only way for them to share code is to compile in all the app files you need to share between the two modules. Check this blog for how you can achieve that, https://www.bignerdranch.com/blog/ui-testing-in-xcode-7-part-1-ui-testing-gotchas/

    Also found a radar filed here, https://openradar.appspot.com/23116258

提交回复
热议问题