Xcode project scheme is not currently configured for the test action

前端 未结 8 1659
旧巷少年郎
旧巷少年郎 2020-12-29 01:02

I am trying to run an Xcode unit test for my iOS application. I am willing to do it on an iPad connected via USB to a Mac. I am trying to run the test from the command line

相关标签:
8条回答
  • 2020-12-29 01:25

    My problem was that the Tests.swift file was importing a module that no longer existed (I renamed the Targets for the project). Check to make sure all test files are importing currently existing modules.

    0 讨论(0)
  • 2020-12-29 01:29
    • You should check your workspace data on Jenkins and see which *.xctest is already uploaded. Then you have to rename your UI/Unit test target to that *.xctest data in your xcode project like what you have on Jenkins and then push again.
    • OR wipe out your workspace from Jenkins and push all data again with new UI/Unit test target again.

    (Of course you have to ensure that you have already made a scheme for project.)

    0 讨论(0)
提交回复
热议问题