인프런 커뮤니티 질문&답변

정종찬님의 프로필 이미지
정종찬

작성한 질문수

맛집 지도앱 만들기 (React Native + NestJS)

[1-5] 프로젝트 생성 및 ruby 에러 해결

실행 실패

해결된 질문

작성

·

115

0

npm run start 
// 이후 i 입력 후 IOS 시뮬레이터 실행

위 명령어를 실행하면

yarn run v1.22.19

$ react-native start

▒▒▓▓▓▓▒▒

▒▓▓▓▒▒░░▒▒▓▓▓▒

▒▓▓▓▓░░░▒▒▒▒░░░▓▓▓▓▒

▓▓▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▓▓

▓▓░░░░░▒▓▓▓▓▓▓▒░░░░░▓▓

▓▓░░▓▓▒░░░▒▒░░░▒▓▒░░▓▓

▓▓░░▓▓▓▓▓▒▒▒▒▓▓▓▓▒░░▓▓

▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░▓▓

▓▓▒░░▒▒▓▓▓▓▓▓▓▓▒░░░▒▓▓

▒▓▓▓▒░░░▒▓▓▒░░░▒▓▓▓▒

▒▓▓▓▒░░░░▒▓▓▓▒

▒▒▓▓▓▓▒▒

Welcome to Metro v0.76.8

Fast - Scalable - Integrated

r - reload the app

d - open developer menu

i - run on iOS

a - run on Android

info Opening the app on iOS...

info Found Xcode workspace "kobeReactNative.xcworkspace"

info No booted devices or simulators found. Launching first available simulator...

info Launching iPhone SE (3rd generation) (iOS 18.0)

info Building (using "xcodebuild -workspace kobeReactNative.xcworkspace -configuration Debug -scheme kobeReactNative -destination id=A9D1DDD6-6FB9-4912-B4F1-048775538E64")

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Command line invocation:

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace kobeReactNative.xcworkspace -configuration Debug -scheme kobeReactNative -destination id=A9D1DDD6-6FB9-4912-B4F1-048775538E64

User defaults from command line:

IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

ComputeTargetDependencyGraph

note: Building targets in dependency order

note: Target dependency graph (56 targets)

Target 'kobeReactNative' in project 'kobeReactNative'

➜ Implicit dependency on target 'Pods-kobeReactNative' in project 'Pods' via file 'libPods-kobeReactNative.a' in build phase 'Link Binary'

➜ Implicit dependency on target 'CocoaAsyncSocket' in project 'Pods' via options '-lCocoaAsyncSocket' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'DoubleConversion' in project 'Pods' via options '-lDoubleConversion' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Flipper' in project 'Pods' via options '-lFlipper' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods' via options '-lFlipper-Boost-iOSX' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Flipper-Fmt' in project 'Pods' via options '-lFlipper-Fmt' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Flipper-Folly' in project 'Pods' via options '-lFlipper-Folly' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Flipper-PeerTalk' in project 'Pods' via options '-lFlipper-PeerTalk' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'FlipperKit' in project 'Pods' via options '-lFlipperKit' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'RCT-Folly' in project 'Pods' via options '-lRCT-Folly' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'RCTTypeSafety' in project 'Pods' via options '-lRCTTypeSafety' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-Codegen' in project 'Pods' via options '-lReact-Codegen' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-Core' in project 'Pods' via options '-lReact-Core' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-CoreModules' in project 'Pods' via options '-lReact-CoreModules' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-NativeModulesApple' in project 'Pods' via options '-lReact-NativeModulesApple' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTAnimation' in project 'Pods' via options '-lReact-RCTAnimation' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTAppDelegate' in project 'Pods' via options '-lReact-RCTAppDelegate' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTBlob' in project 'Pods' via options '-lReact-RCTBlob' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTImage' in project 'Pods' via options '-lReact-RCTImage' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTLinking' in project 'Pods' via options '-lReact-RCTLinking' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTNetwork' in project 'Pods' via options '-lReact-RCTNetwork' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTSettings' in project 'Pods' via options '-lReact-RCTSettings' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTText' in project 'Pods' via options '-lReact-RCTText' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-RCTVibration' in project 'Pods' via options '-lReact-RCTVibration' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-cxxreact' in project 'Pods' via options '-lReact-cxxreact' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-debug' in project 'Pods' via options '-lReact-debug' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-hermes' in project 'Pods' via options '-lReact-hermes' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-jsi' in project 'Pods' via options '-lReact-jsi' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-jsiexecutor' in project 'Pods' via options '-lReact-jsiexecutor' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-jsinspector' in project 'Pods' via options '-lReact-jsinspector' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-logger' in project 'Pods' via options '-lReact-logger' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-perflogger' in project 'Pods' via options '-lReact-perflogger' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-runtimescheduler' in project 'Pods' via options '-lReact-runtimescheduler' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'React-utils' in project 'Pods' via options '-lReact-utils' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'ReactCommon' in project 'Pods' via options '-lReactCommon' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'SocketRocket' in project 'Pods' via options '-lSocketRocket' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'Yoga' in project 'Pods' via options '-lYoga' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'YogaKit' in project 'Pods' via options '-lYogaKit' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'fmt' in project 'Pods' via options '-lfmt' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'glog' in project 'Pods' via options '-lglog' in build setting 'OTHER_LDFLAGS'

➜ Implicit dependency on target 'libevent' in project 'Pods' via options '-llibevent' in build setting 'OTHER_LDFLAGS'

Target 'Pods-kobeReactNative' in project 'Pods'

➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'

➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'

➜ Explicit dependency on target 'FBLazyVector' in project 'Pods'

➜ Explicit dependency on target 'FBReactNativeSpec' in project 'Pods'

➜ Explicit dependency on target 'Flipper' in project 'Pods'

➜ Explicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods'

➜ Explicit dependency on target 'Flipper-DoubleConversion' in project 'Pods'

➜ Explicit dependency on target 'Flipper-Fmt' in project 'Pods'

➜ Explicit dependency on target 'Flipper-Folly' in project 'Pods'

➜ Explicit dependency on target 'Flipper-Glog' in project 'Pods'

➜ Explicit dependency on target 'Flipper-PeerTalk' in project 'Pods'

➜ Explicit dependency on target 'FlipperKit' in project 'Pods'

➜ Explicit dependency on target 'OpenSSL-Universal' in project 'Pods'

➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'

➜ Explicit dependency on target 'RCTRequired' in project 'Pods'

➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'

➜ Explicit dependency on target 'React' in project 'Pods'

➜ Explicit dependency on target 'React-Codegen' in project 'Pods'

➜ Explicit dependency on target 'React-Core' in project 'Pods'

➜ Explicit dependency on target 'React-CoreModules' in project 'Pods'

➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'

➜ Explicit dependency on target 'React-RCTActionSheet' in project 'Pods'

➜ Explicit dependency on target 'React-RCTAnimation' in project 'Pods'

➜ Explicit dependency on target 'React-RCTAppDelegate' in project 'Pods'

➜ Explicit dependency on target 'React-RCTBlob' i


이런 로그에서 멈춰서 더 이상 진행이 안되는데, 뭐가 문제인지 도저히 감이 잡히질 않네요 ㅠ

답변 2

0

Kyo님의 프로필 이미지
Kyo
지식공유자

Xcode로 앱을 실행해보시겠어요? ios폴더의 프로젝트명.xcworkspace 파일을 더블클릭하여 xcode를 열고 빌드하시면됩니다.

0

안녕하세요, 인프런 AI 인턴입니다. 정종찬님의 문제를 이해하고 해결에 도움이 될만한 정보를 찾아보았습니다.

정종찬님께서 실행하신 명령어에서 iOS 시뮬레이터가 실행되지 않고 로그가 멈추는 문제를 겪고 계신 것 같습니다. 주어진 로그에서 엿볼 수 있는 문제는, iOS 시뮬레이터에 관련된 부분입니다. 일반적으로 이런 문제는 개발 환경 설정에서 비롯될 수 있습니다.

가능한 해결책:

  1. Xcode와 Xcode Command Line Tools 확인: 최신 버전의 Xcode와 해당 Command Line Tools가 설치되고 설정되었는지 확인하세요. 가끔 sudo xcode-select --switch /Applications/Xcode.app 명령어로 명시적으로 Xcode의 경로를 지정해주는 것이 필요할 수 있습니다.

  2. 시뮬레이터 설정 확인: Xcode에서 사용 가능한 시뮬레이터가 있는지, 특히 ‘iPhone SE (3rd generation)’ 시뮬레이터가 올바르게 설정되어 있는지 확인하세요. 시뮬레이터를 수동으로 실행해보는 것도 좋습니다.

  3. React Native Doctor: npx react-native doctor 명령어를 사용하여 설정의 문제를 점검하고, 제안된 해결책을 따르세요.

  4. Pod 재설치: iOS 프로젝트의 Pod 파일이 제대로 설치되지 않았을 수 있습니다. 다음 명령어를 사용하여 Pod를 제거하고 다시 설치해 보세요:

    cd ios
    rm -rf Pods
    rm Podfile.lock
    pod install
    cd ..
    

    그런 다음 npm run start을 반복해서 시도해 보세요.

이와 관련된 실제 사례 및 해결 방법을 소개한 답변이 수강생 커뮤니티에 있습니다. 해당 강의를 수강하는 수험생이 비슷한 문제를 해결하는 과정에서 정보를 나눈 게시물을 참고해보세요:
- 시뮬레이터가 작동하지 않아요ㅠ: xcode가 정상적으로 설정된 후에도 문제가 지속되는 경우에 대한 해결책이 논의됐습니다.

정종찬님께서 문제가 해결되길 바랍니다. 다른 궁금한 점이 있으시다면, 계속해서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다. 현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏

저는 질문자님의 이해를 돕기 위해 유사한 문제를 겪었던 다른 사용자의 해결 과정을 참고해 유사한 답변 링크를 제공해드리고 있습니다.

정종찬님의 프로필 이미지
정종찬

작성한 질문수

질문하기