测试目标X遇到错误(早期意外退出,操作从未完成引导 - 不会尝试重启 [英] Test target X encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted

查看:396
本文介绍了测试目标X遇到错误(早期意外退出,操作从未完成引导 - 不会尝试重启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始与OCMock合作,为我已经集成到项目工作区的现有项目编写测试用例。遵循此链接中提到的所有步骤

I have started working with OCMock to write test cases for the existing project that i have integrated in my project workspace. After following all the steps mentioned in this link

当我第一次执行我的测试用例时,它给了我这个错误。我搜索了它并试图遵循一些解决方案,如创建新目标,重新启动Xcode,但它并没有帮助我。任何想法?

When i first executed my test case its giving me this error. I searched it and tried following some of the solutions like "creating new target"," restarting Xcode" but it didn't help me out. Any Idea?

推荐答案

我在这里有Cocoapods和Carthage的笔记和演示应用程序https://github.com/onmyway133/TestTarget

I have my notes and demo applications for both Cocoapods and Carthage here https://github.com/onmyway133/TestTarget


  • 确保所有框架链接到测试目标

  • 配置运行路径搜索路径指向 $(FRAMEWORK_SEARCH_PATHS)

  • Make sure all frameworks are linked to the Test targets
  • Configure Runpath Search Paths to point to $(FRAMEWORK_SEARCH_PATHS)

更多信息

  • Run-Path Dependent Libraries

这篇关于测试目标X遇到错误(早期意外退出,操作从未完成引导 - 不会尝试重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆