• 全国 [切换]
  • 二维码
    养老之家

    手机WAP版

    手机也能找商机,信息同步6大终端平台!

    微信小程序

    微信公众号

    当前位置: 首页 » 行业新闻 » 热点新闻 » 正文

    Resolve Xcode Test stuck

    放大字体  缩小字体 发布日期:2024-10-19 09:54:20   浏览次数:1  发布人:1376****  IP:124.223.189***  评论:0
    导读

    I recently added a XCTest target to my existing project in Xcode to improve my code quality. But when I run the test, Xcode went stuck and keeps showing testing on the toolbar. I wait for about 10 min

    I recently added a XCTest target to my existing project in Xcode to improve my code quality. But when I run the test, Xcode went stuck and keeps showing testing on the toolbar. I wait for about 10 minutes and nothing changed. After about half an hour of searching on the web I got the solution.

    Here are the steps:

    1. In the Xcode menu, go to Product -> Schema -> EditSchema -> Test
    2. Under the Test Plans section, you can find your project.
    3. There's a small right arrow icon after the projects name. Click it.
    4. There's an Options button at the right side of the new page. Click it.
    5. A popup is shown, and have a select called Parallelization
    6. Select Swift Testing Only
    7. The editor may ask you to save the configuration, just save it.
    8. Run your test again, and it should work now.

    Why this happened?

    I've no idea...

    But just do it, stop wasting time on the bug.

    本文由博客一文多发平台 OpenWrite 发布!

     
    (文/匿名(若涉版权问题请联系我们核实发布者) / 非法信息举报 / 删稿)
    打赏
    免责声明
    • 
    本文为昵称为 1376**** 发布的作品,本文仅代表发布者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,发布者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们613427379@qq.com删除,我们积极做(权利人与发布者之间的调停者)中立处理。郑重说明:不 违规举报 视为放弃权利,本站不承担任何责任!
    有个别老鼠屎以营利为目的遇到侵权情况但不联系本站或自己发布违规信息然后直接向本站索取高额赔偿等情况,本站一概以诈骗报警处理,曾经有1例诈骗分子已经绳之以法,本站本着公平公正的原则,若遇 违规举报 我们100%在3个工作日内处理!
    0相关评论
     

    (c)2008-现在 0yw.com All Rights Reserved.