관리 메뉴

김종권의 iOS 앱 개발 알아가기

[fastlane] 6. fastlane register devices, 디바이스 정보(UDID, Name) Apple Developer에 등록 방법 (register_devices) 본문

iOS 앱 배포와 출시

[fastlane] 6. fastlane register devices, 디바이스 정보(UDID, Name) Apple Developer에 등록 방법 (register_devices)

jake-kim 2021. 8. 23. 23:05

1fastlane이란?

2. Bundler란? cocoapod 동기화 방법?

3. fastlane match (certificate, provisioning profile 정보를 git에 저장)

4. fastlane build_app (빌드, firebase에 배포)

5. fastlane 앱 스토어에 배포 (App Store Connect)

6. fastlane register devices, 디바이스 정보(UDID, Name) Apple Developer에 등록 방법 (register_devices)

*7. fastlane 총 정리 및 phase별 configuration 설정, 환경변수 설정

*8. fastlane Bitrise 이용한 자동 배포 구축 방법

 

cf) fastlane 환경 변수 (.env.default) 사용하여 가장 단순한 match 사용 방법

 

fastlane없이 device 정보 등록 방법

Fastlane의 register_device 사용 방법 

// 포멧은 Tab간격으로 구분, "Dvice ID", "Device Name" 필드 존재
Device ID	Device Name
A123456789012345678901234567890123456789	NAME1
B123456789012345678901234567890123456789	NAME2
A5B5CD50-14AB-5AF7-8B78-AB4751AB10A8	NAME3
A5B5CD50-14AB-5AF7-8B78-AB4751AB10A7		NAME4
  • lane 정의
  lane :register_new_devices do
    register_devices(
      devices_file: "./fastlane/devices.txt",
      team_id: "ABCDEFG"
    )
  • txt파일 없이 command line interaction식으로 사용 방법
  lane :register_new_device do  |options|
      device_name = prompt(text: "Enter the device name: ")
      device_udid = prompt(text: "Enter the device UDID: ")
      device_hash = {}
      device_hash[device_name] = device_udid
      register_devices(
                       devices: device_hash
                       )
    refresh_profiles
  end
  • 사용
$ bundle exec fastlane register_new_devices

성공 > Apple Developer의 Devices에도 반영

* 참고

https://docs.fastlane.tools/actions/register_devices/

Comments