码迷,mamicode.com
首页 > 移动开发 > 详细

Unable to run Kiwi tests on iOS8 device

时间:2014-10-11 17:54:55      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   os   ar   for   sp   div   2014   

 

本文转载至 http://stackoverflow.com/questions/25871601/unable-to-run-kiwi-tests-on-ios8-device

 

I am trying to run Kiwi (installed via CocoaPods) tests on iOS8 device but the build fails with the following linking errors:

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

Tests are building and running on every available simulator. XCTest tests without Kiwi are being built and run succesfully on iOS 8 device as well.

Sample project: https://www.dropbox.com/s/k3la6zlc0i335ig/Test.zip

share|improve this question
 

Try to add $(PLATFORM_DIR)/Developer/Library/Frameworks to your project‘s Build Settings => Framework Search Paths

bubuko.com,布布扣

share|improve this answer

Unable to run Kiwi tests on iOS8 device

标签:des   http   io   os   ar   for   sp   div   2014   

原文地址:http://www.cnblogs.com/Camier-myNiuer/p/4018999.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!