Xcode project scheme is not currently configured for the test action

前端 未结 8 1658
旧巷少年郎
旧巷少年郎 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:09

    Fixed this up by removing duplicate schemes from Xcode. The schemes can be added/removed/shared/edited in Xcode via Product -> Scheme -> Manage Schemes.

    0 讨论(0)
  • 2020-12-29 01:14

    For everyone struggling with this problem.

    My solution was to:

    1. Select Test Target
    2. Manage Scheme
    3. Select Run in the left menu
    4. Select Info in the tab
    5. Choose Executable Target from the dropdown menu
    6. Hit Close.
    0 讨论(0)
  • 2020-12-29 01:15

    For me the problem was that no tests were added to my scheme:

    By adding test bundles to my scheme via the '+' button then the scheme could be built by Xcode and xcodebuild.

    0 讨论(0)
  • 2020-12-29 01:18

    Please follow following steps to resolve this error.

    1. Select your project scheme at the top.
    2. Click on Manage Schemes.
    3. Select your test target in the popup.
    4. Make sure to click on Edit button at the bottom left of popup.
    5. Select Build.
    6. Click the checkbox below "Run"
    7. Close the popup.
    0 讨论(0)
  • 2020-12-29 01:19

    In my case I had no test file...

    Here is a tutorial to perform UI Tests and create screenshots :

    https://krausefx.com/blog/run-xcode-7-ui-tests-from-the-command-line

    0 讨论(0)
  • 2020-12-29 01:24

    Your test plan should have at least one custom configuration.

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