2014-09-16 24 views
7

Tôi cố gắng để chạy Kiwi (cài đặt qua CocoaPods) trên thiết bị iOS8 nhưng xây dựng không thành công với các lỗi liên kết sau đây:kiểm tra Không thể chạy thử nghiệm Kiwi trên thiết bị iOS8

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 

thử nghiệm đang xây dựng và chạy trên tất cả các trình mô phỏng có sẵn. Các thử nghiệm XCTest không có Kiwi đang được xây dựng và chạy thành công trên thiết bị iOS 8.

EDIT 31,10 Removed liên kết đến dự án thử nghiệm

Trả lời

5

Cố gắng thêm $(PLATFORM_DIR)/Developer/Library/Frameworks vào Settings xây dựng của dự án của bạn => Khung Search Paths

enter image description here

1

thêm -framework XCTest-Other Linker Flags trong dự án xcode bạn

Các vấn đề liên quan