无法在iOS8设备上运行Kiwi测试

我试图在iOS8设备上运行Kiwi(通过 CocoaPods安装)测试但是构建失败并出现以下链接错误:
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest,missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest (2 slices)
Undefined symbols for architecture armv7:
  "_OBJC_METACLASS_$_XCTestSuite",referenced from:
      _OBJC_METACLASS_$__KWAllTestsSuite in libPods-TestTests.a(KWAllTestsSuite.o)
  "_OBJC_CLASS_$_XCTestSuite",referenced from:
      _OBJC_CLASS_$__KWAllTestsSuite in libPods-TestTests.a(KWAllTestsSuite.o)
      objc-class-ref in libPods-TestTests.a(KWAllTestsSuite.o)
      l_OBJC_$_CATEGORY_XCTestSuite_$_KWConfiguration in libPods-TestTests.a(KWAllTestsSuite.o)
  "_OBJC_METACLASS_$_XCTestCase",referenced from:
      _OBJC_METACLASS_$_TestTests in TestTests.o
      _OBJC_METACLASS_$_KWSpec in libPods-TestTests.a(KWSpec.o)
  "_OBJC_CLASS_$_XCTestCase",referenced from:
      _OBJC_CLASS_$_TestTests in TestTests.o
      _OBJC_CLASS_$_KWSpec in libPods-TestTests.a(KWSpec.o)
  "__XCTFailureHandler",referenced from:
      -[TestTests testExample] in TestTests.o
  "__XCTFailureFormat",referenced from:
      -[TestTests testExample] in TestTests.o
  "_OBJC_EHTYPE_$__XCTestCaseInterruptionException",referenced from:
  GCC_except_table2 in TestTests.o
ld: symbol(s) not found for architecture armv7

测试正在每个可用的模拟器上构建和运行.
没有Kiwi的XCTest测试正在构建并在iOS 8设备上成功运行.

编辑31.10删除了测试项目的链接

解决方法

尝试将$(PLATFORM_DIR)/ Developer / Library / Frameworks添加到项目的Build Settings =>框架搜索路径

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...