Xcode 9.1에서는 이전 프로젝트에 유닛 테스트 타겟을 추가 했으므로 테스트를 실행할 수 없습니다. 콘솔에서 다음과 같은 오류와 실행에서 대상 충돌 : 그것은 현재 아키텍처 *에 대한 버전이 포함되어 있지 않기 때문에XCTest, 테스트 번들을로드하지 못했습니다. 테스트 시작시 충돌 발생
번들 "XXXTests"로드 할 수 없습니다
전체 출력 :
2017-11-15 11:52:40.973 XXX[54962:16511010] Failed to load test bundle from file:///Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/XXXTests): no suitable image found. Did find: /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/XXXTests: mach-o, but wrong architecture" UserInfo={NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/XXXTests, NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedDescription=The bundle “XXXTests” couldn’t be loaded because it doesn’t contain a version for the current architecture., NSDebugDescription=dlopen_preflight(/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/XXXTests): no suitable image found. Did find: /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest/XXXTests: mach-o, but wrong architecture, NSBundlePath=/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-gaxtmzjadfkxzsdciqnpmyczgntj/Build/Products/DEV-iphonesimulator/XXX.app/PlugIns/XXXTests.xctest}
(그리고 내가 포함되지 않은 일부 진단 출력)
물건은 내가 광범위하게 인터넷 검색 후 확인했습니다
- 빌드 액티브 아키텍처 만 설정이 주요 대상
- 에 대해 Yes로 설정 I 대상 삭제 한
- 이 테스트 용이성 사용 (예의 값으로) 응용 프로그램 및 테스트 대상에서 일치 처음부터 다시 시작했습니다.
어떻게 해결할 수 있습니까?
테스트 번들을위한 "유효한 아키텍처"란 무엇입니까? 나는 그것과 "Build Active Architecture Only"의 교차가 비어 있는지 궁금합니다. –