๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐ŸŽ iOS/iOS Application

[iOS] fastlane ์œผ๋กœ Testflight, Appstore ์ž๋™ ๋ฐฐํฌํ•˜๊ธฐ

๊ธฐ์กด ๋ณต์žกํ•œ ๋ฐฐํฌ๊ณผ์ •์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ž‘์—…ํ•จ์œผ๋กœ์จ ์ƒ์‚ฐ์„ฑ ์ฆ๊ฐ€.

 

[๊ธฐ์กด ๋ฐฐํฌ๊ณผ์ •]

๋ฒ„์ „, ๋นŒ๋“œ ์˜ฌ๋ฆผ

3์ธ ์ด์ƒ์˜ ๊ฐœ๋ฐœ์ž ๊ฐ„ ์ธ์ฆ์„œ ๋ฐœ๊ธ‰ ๊ณต์œ 

์• ๋„๋ผ์ด์ฆˆ ๋Œ€๊ธฐ

์•„์นด์ด๋ธŒ ๋Œ€๊ธฐ

ํ…Œ์ŠคํŠธ ํ”Œ๋ผ์ดํŠธ, ์•ฑ์Šคํ† ์–ด ์—…๋กœ๋“œ ๋Œ€๊ธฐ

์‹ฌ์‚ฌ ์š”์ฒญ, ์‹ฌ์‚ฌ ํ†ต๊ณผ ํ›„ ์ฒด์ธ์ง€ ๋กœ๊ทธ ์ž‘์„ฑ ํ›„ ์ถœ์‹œ

 

์ฐธ๊ณ  :https://hyeon-dev.tistory.com/entry/iOSfastlane-%EC%9E%90%EB%8F%99%EB%B0%B0%ED%8F%AC-testFilght-%EC%98%AC%EB%A6%AC%EA%B8%B0


fastlane ์„ค์น˜

xcode-select --install

fastlane์€ ์—‘์Šค์ฝ”๋“œ์˜ ์ปค๋งจ๋“œ๋ผ์ธ ํˆด์„ ์ด์šฉํ•ฉ๋‹ˆ๋‹ค.

brew install fastlane

fastlane ์„ค์น˜

fastlane init

ํ”„๋กœ์ ํŠธ์˜ ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ๋ช…๋ น์„ ์‹คํ–‰ ํ•ฉ๋‹ˆ๋‹ค.

 

fastlane ํŒŒ์ผ ๊ตฌ์„ฑ

Fastfile

์‹ค์ œ ์ปค๋งจ๋“œ ๋ช…๋ น๋“ค์„ ๋งŒ๋“œ๋Š” ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.

์ถ”๊ฐ€ :

์ธ์ฆ์„œ, ํ”„๋กœ๋น„์ €๋‹ ํŒŒ์ผ ์„ ๊ฐ€์ ธ์˜ด

get_certificates
get_provisioning_profile

 

์•ฑ ๋นŒ๋“œ ๋ฉ”์†Œ๋“œ

build_app(workspace: "jasoseol.xcworkspace", scheme: "jasoseol")

์•ฑ์Šคํ† ์–ด ์—…๋กœ๋“œ ๋ฉ”์†Œ๋“œ

upload_to_app_store(skip_metadata: true, skip_screenshots: true)

 

 

 

 

๋ฐฐํฌ ๋ช…๋ น 

$ fastlane release

 

 

 

 

๋งŒ๋‚œ ์—๋Ÿฌ๋“ค

>> ํ”„๋กœ๋น„์ €๋‹ ํŒŒ์ผ ๋“ฑ๋ก

 

>>

iOS fastlane Unable to upload archive. Failed to get authorization for username '์ด๋ฉ”์ผ' and password

์ œ๋ชฉ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ์™€ ํ•จ๊ป˜ ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ œ๊ฐ€ ํ•ด๊ฒฐํ•œ ๋ฐฉ๋ฒ•์€ .env ํŒŒ์ผ์„ ๋งŒ๋“ค์–ด์„œ ์•ฑ ์•”ํ˜ธ๋ฅผ ๋„ฃ์–ด์ฃผ๊ณ  ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค. 

 

fastlane์„ ์„ค์ •ํ•˜์‹ค ๋•Œ ์•ฑ ํ”„๋กœ์ ํŠธ ํด๋”์—์„œ fastlane init๋ฅผ ํ•˜์…จ์„ ํƒ ๋ฐ์š” ๊ทธ๋Ÿฌ๋ฉด fastlane ํด๋”๊ฐ€ ํ”„๋กœ์ ํŠธ ํด๋” ์•ˆ์— ์ƒ๊ธด ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ๊ฑฐ๊ธฐ์•ˆ์— env ํŒŒ์ผ์„ ๋„ฃ์–ด์ค„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. 

 

ํ„ฐ๋ฏธ๋„์„ ํ†ตํ•ด์„œ 'fastlane init'ํ•œ ์œ„์น˜๋กœ ์ด๋™ํ•˜์—ฌ 'vim fastlane/.env' ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์„ธ์š”. ๊ทธ๋Ÿผ vim ์—๋””ํ„ฐ๊ฐ€ ๋œจ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. 

 

>> ์•ฑ ์•„์ด๋”” ์ƒ์„ฑ ๋ฐ ํŒŒ์ผ ์•ˆ์— ์ถ”๊ฐ€

https://account.apple.com/

์•ฑ ์•”ํ˜ธ๋ฅผ ์„ ํƒํ•˜๊ณ  ์ƒ์„ฑํ•˜๋ฉด 'xxxx-xxxx-xxxx-xxxx' ์ด๋Ÿฐ ์‹์˜ ์•”ํ˜ธ๊ฐ€ ๋‚˜์˜ฌ ๊ฒƒ์ž…๋‹ˆ๋‹ค. 

 

FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD="์œ„์—์„œ ๋ฐœ๊ธ‰ํ•œ ์•”ํ˜ธ"

 

๊ทธ๋Ÿผ ๋‹ค์‹œ vim ์—๋””ํ„ฐ์— ์œ„ ์„ค์ •์„ ํ•ด์ค์‹œ๋‹ค. (i๋ฅผ ๋ˆ„๋ฅด๋ฉด ์ˆ˜์ • ๊ฐ€๋Šฅ) 

์ž…๋ ฅ์ด ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ':wq'๋ฅผ ํ†ตํ•ด์„œ ์ €์žฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 

>> ์ด์ „์— ์˜ฌ๋ ธ๋˜ ํ…Œ์ŠคํŠธํ”Œ๋ผ์ดํŠธ ๋ฒ„์ „๋ณด๋‹ค ๋†’๊ฒŒ ์žก๊ธฐ

728x90
๋ฐ˜์‘ํ˜•