【问题标题】:Unit test case fails in xcodexcode中的单元测试用例失败
【发布时间】:2015-04-24 09:33:57
【问题描述】:

当我在 xcode 6.3 中运行我的单元测试用例时,它给了我一个错误提示

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation).

单元测试在开发人员系统中运行,但在我的服务器 mac 机器中运行。请帮帮我。

【问题讨论】:

    标签: ios objective-c xcode xctest


    【解决方案1】:

    终于自己发现了。这是xcode中的一个错误。只需卸载 xcode 并删除路径 ~/Library/Developer/Xcode 中的文件。然后重新安装xcode,错误就消失了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-28
      • 1970-01-01
      • 2016-01-02
      • 2022-09-30
      • 1970-01-01
      • 2020-08-07
      • 2016-07-05
      • 1970-01-01
      相关资源
      最近更新 更多