iOS/CI/CD

fastlane - iOS 배포 자동화-2

@서비 2022. 4. 11. 22:35

 

기존에 작성한 Fastfile은 앱을 빌드까지만 하고 업로드는 하지 않는다.

이제 Fastfile을 수정하여 testFlight용도로 업로드를 해보자

 

 

1. Fastfile 수정

 

일단 나는 워크스페이스를 쓰기 때문에 워크스페이스 하고 scheme을 작성해 주었다.

그리고 업로드할 수 있게 upload_to_testflight로 작성하였다.

default_platform(:ios)

platform :ios do
desc "build app and upload to testflight"
lane :beta do
	get_certificates
	get_provisioning_profile
	increment_build_number(
		build_number: latest_testflight_build_number + 1
	)
	build_app(
		workspace: "ActiveLabelTest.xcworkspace", scheme: "ActiveLabelTest"
	)
	upload_to_testflight
	version = get_version_number
	

  end
end

 

 

 

2. 빌드 실행

 

1. 에러가 발생하였다.

-> 문제는 Test 용 앱이라 앱 아이콘이 없어서 발생한다.

-> 앱 아이콘을 만들어서 넣어주면 된다.

-> 참고 : https://appicon.co/

Error for waiting for the build to show up in the build list

 

 

작성하고 다시 빌드 하면 성공한다.

fastlane upload testflight