9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.1 KiB
5.1 KiB
id, title, category, status, source_trust_level, verification_status, created_at, updated_at, tags, tech_stack, applied_in, aliases
| id | title | category | status | source_trust_level | verification_status | created_at | updated_at | tags | tech_stack | applied_in | aliases | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mobile-ci-cd-fastlane | Mobile CI/CD — Fastlane / EAS / 자동 배포 | Coding | draft | B | conceptual | 2026-05-09 | 2026-05-09 |
|
|
|
Mobile CI/CD
빌드 / 서명 / 업로드 자동화. Fastlane = native, EAS = Expo, Codemagic / Bitrise = 매니지드. Match 로 인증서 공유. 매 PR = 빌드, main = TestFlight + internal track.
📖 핵심 개념
- 인증서 / provisioning: 자동 동기 (Fastlane Match).
- Versioning: Marketing version + build number.
- Track / Channel: internal / beta / production.
- Symbol upload: dSYM / mapping → Crashlytics / Sentry.
💻 코드 패턴
Fastlane (iOS)
# fastlane/Fastfile
default_platform(:ios)
platform :ios do
desc "Build and upload to TestFlight"
lane :beta do
setup_ci if ENV['CI']
match(type: 'appstore', readonly: ENV['CI'] == 'true')
increment_build_number(xcodeproj: 'App.xcodeproj')
build_app(scheme: 'App', export_method: 'app-store')
upload_to_testflight(skip_waiting_for_build_processing: true)
upload_symbols_to_crashlytics(dsym_path: 'App.app.dSYM.zip')
end
end
fastlane beta
Fastlane Match (인증서 git repo)
# fastlane/Matchfile
git_url 'git@github.com:acme/certs.git'
storage_mode 'git'
type 'appstore'
app_identifier ['com.acme.app']
fastlane match appstore
# 인증서 + provisioning 자동 sync
Fastlane (Android)
platform :android do
desc "Internal track"
lane :internal do
gradle(task: 'bundleRelease')
upload_to_play_store(
track: 'internal',
aab: 'app/build/outputs/bundle/release/app-release.aab',
)
end
end
GitHub Actions
name: ios-beta
on:
push: { branches: [main] }
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with: { ruby-version: '3.3', bundler-cache: true }
- uses: actions/setup-node@v4
- run: yarn install --immutable
- name: Setup keychain
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
run: bundle exec fastlane beta
EAS (Expo)
// eas.json
{
"build": {
"development": { "developmentClient": true, "distribution": "internal" },
"preview": { "distribution": "internal", "ios": { "simulator": true } },
"production": { "autoIncrement": true }
},
"submit": {
"production": {
"ios": { "ascAppId": "1234567890" },
"android": { "track": "internal" }
}
}
}
eas build --platform all --profile production
eas submit --platform all --profile production
Versioning 자동
# Marketing 은 git tag 또는 package.json 에서, build = CI run number
build = ENV['GITHUB_RUN_NUMBER'] || `git rev-list --count HEAD`.to_i
increment_build_number(build_number: build)
App Store Connect API Key (auth)
app_store_connect_api_key(
key_id: ENV['ASC_KEY_ID'],
issuer_id: ENV['ASC_ISSUER_ID'],
key_content: ENV['ASC_KEY_CONTENT'],
)
session 만료 / 2FA 우회 — 권장.
Symbol 업로드
# iOS Crashlytics
upload_symbols_to_crashlytics(dsym_path: 'App.app.dSYM.zip')
# Sentry
sentry_upload_dif(
auth_token: ENV['SENTRY_AUTH_TOKEN'],
org_slug: 'acme', project_slug: 'app',
path: './App.app.dSYM.zip',
)
# Android — Sentry CLI
sh "sentry-cli upload-proguard --org acme --project app app/build/outputs/mapping/release/mapping.txt"
Beta 사용자 알림 (TestFlight + Slack)
slack(
message: "iOS beta #{build} uploaded to TestFlight",
channel: '#mobile',
default_payloads: [],
)
Production rollout
# Play Console: staged rollout
upload_to_play_store(
track: 'production',
rollout: '0.1', # 10% 부터 시작
)
🤔 의사결정 기준
| 상황 | 추천 |
|---|---|
| Native iOS / Android | Fastlane + GH Actions |
| Expo 앱 | EAS Build + Submit |
| 매니지드 / 작은 팀 | Codemagic / Bitrise |
| Self-host runner | macOS GH Actions runner (mac mini) |
| 큰 조직 | Bitrise / Xcode Cloud |
| Beta 분배 (외부) | TestFlight + Firebase App Distribution |
❌ 안티패턴
- 인증서 수동 공유 (slack): 잃어버림. Match.
- Match git repo public: 보안. Private + encryption.
- Build number 수동 증가: forget. CI 자동.
- dSYM / mapping 누락: prod crash 추적 불가.
- 2FA 수동: CI 못 인증. App Store Connect API key.
- Push to main = prod 자동: 위험. internal → manual promote.
- 모든 PR 가 빌드: 비용. main 만 또는 label 트리거.
🤖 LLM 활용 힌트
- Fastlane Match + ASC API key + dSYM 자동 업로드 3종.
- Internal → beta → production 단계.
- staged rollout 으로 안전 점진.