iOS

JENKINS[ERROR] no test bundles available ~

스엠 2023. 3. 11. 16:59

에러 본문 

 

xcodebuild: error: Failed to build workspace SwiftAnimation with scheme SwiftAnimation.
Reason: There are no test bundles available to test.
Recovery suggestion: Ensure that all package dependencies have resolved and that there are no missing test bundles in the active scheme or test plan.

 

 

TDD를 적용하지 않았거나.

간단한 프로젝트에서 TestTarget을 만들지 않았을때 발생하는 문제이다.

 

보통 jenkins 도입 과정을 보면 xcode build 명령어가 다음과 같이 되어 있는 것을 볼 수 있을것이다. 

xcodebuild clean test -workspace "".xcworkspace -scheme "" -destination "platform=iOS Simulator,name=iPhone 14 pro" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO

 

이것도 굉장히 간단하다. test하라는 명령어만 빼주면 된다. 

xcodebuild clean -workspace "".xcworkspace -scheme "" -destination "platform=iOS Simulator,name=iPhone 14 pro" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO

물론 테스트 유닛이 있는 상태에서도 이러한 에러가 뜰 수 있지만 아직 내가 경험해보지 못했기에 추후에 같은 일이 생기면 블로그에

기술 해볼 것이다.

'iOS' 카테고리의 다른 글

JENKINS (3) - github Webhook[ngrok] (1)  (2) 2023.03.11
JENKINS(2) - 환경변수 설정  (1) 2023.03.11
JENKINS[ERROR] Couldn`t find any revision to build  (1) 2023.03.11
JENKINS (1) - 첫 CI 경험해보기  (0) 2023.03.11
Tuist(3) - 환경변수  (0) 2023.02.13