Skip to content

fix: iOS 모노레포 환경에서 node_modules 경로 수정 - #138

Merged
kimnamheeee merged 1 commit into
developfrom
fix/ios-monorepo-node-modules-paths
Aug 11, 2026
Merged

kimnamheeee merged 1 commit into
developfrom
fix/ios-monorepo-node-modules-paths

Conversation

@cirtuare

Copy link
Copy Markdown
Collaborator

작업 내용

  • iOS 쪽 상대경로가 모노레포 pnpm hoisted 구조(node_modules가 apps/mobile이 아닌 루트에만 생성)를 반영 못해서 pod install / Xcode 빌드가 실패하던 것 수정
    • Podfile: require_relative 경로, react_native_post_install 호출의 react_native_path 인자
    • Local.xcscheme / Staging.xcscheme / clubhouse.xcscheme: react-native-config 프리액션 스크립트 경로
    • project.pbxproj: "Bundle React Native code and images" / "Start Packager" 스크립트 페이즈, react-native-vector-icons 폰트 리소스(16개) 경로

변경 이유

테스트한 내용

  • pnpm install → apps/mobile/ios에서 pod install 성공
  • iPhone 17 Pro 시뮬레이터에서 xcodebuild 빌드 성공, 앱 설치 후 홈 화면까지 정상 진입 확인

체크

  • 정상 동작 확인
  • 콘솔 에러 없음

⚠️ gitignore 대상 파일 (로컬에 직접 준비해야 함)

빌드는 이 PR로 되지만, 아래 파일들은 .gitignore에 걸려 있어서 이 PR / 저장소에 포함되어 있지 않습니다. 없으면 각각 아래 증상이 나므로 로컬에 직접 준비해야 합니다.

  • apps/mobile/ios/GoogleService-Info.plist (Firebase 설정)
    • 없으면: pod install 이후 Xcode 빌드가 CopyPlistFile ... GoogleService-Info.plist 단계에서 "Build input file cannot be found" 에러로 실패
  • apps/mobile/.env.local, apps/mobile/.env.prod (.env.example 참고해서 채우기)
    • 없으면: 빌드/실행은 되지만 API_SERVER_BASE_URL이 비어서 앱 초기화 API 호출이 계속 실패 → 스플래시(초기화 로딩) 화면에서 영원히 안 넘어감

기존 allclear-app(모노레포 이전) 저장소를 로컬에 아직 갖고 있다면 거기서 그대로 복사해와도 됩니다. 못 구하는 팀원은 문의 주세요.

모노레포 마이그레이션(#127) 후 pnpm hoisted 모드로 node_modules가
apps/mobile이 아닌 루트에만 생성되는데, iOS 쪽 상대 경로들이 이를
반영하지 못해 pod install / Xcode 빌드가 실패했음. Android는 이미
동일한 문제가 #130, #136에서 수정됐으나 iOS는 누락되어 있었음.

- Podfile: require_relative 경로, react_native_post_install의
  react_native_path 인자 추가
- Local/Staging/clubhouse.xcscheme: react-native-config 프리액션
  스크립트 경로
- project.pbxproj: 번들링/패키저 스크립트 페이즈 및
  react-native-vector-icons 폰트 리소스 경로

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kimnamheeee
kimnamheeee merged commit c9428c8 into develop Aug 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants