인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

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

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

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

가상 ios가 켜지긴 하는데 앱은 미노출

해결된 질문

작성

·

189

0

질문 작성시 꼭 참고해주세요

  • 에러 메세지에서 단서를 찾을 수 있는 경우가 많습니다. 에러 메세지를 읽고 한번 검색해보시는것을 추천드립니다.

  • 질문글을 작성하실때는, 현재 문제(또는 에러)와 코드나 github을 첨부해주세요.

  • 개발중인 OS, ReactNative, Node 버전 등의 개발환경을 알려주셔야합니다.

  • 에러메세지는 일부분이 아닌 전체 상황을 올려주세요. 일부만 보여주시면 답변이 어렵습니다.

(일부만 자르거나 일부만 복사하지말아주세요.)

  

info Opening the app on iOS...

info Found Xcode project "MatApp.xcodeproj"

info Found booted iPhone 16 Pro

info Launching iPhone 16 Pro

info Building (using "xcodebuild -project MatApp.xcodeproj -configuration Debug -scheme MatApp -destination id=F4F5FF9B-9736-4D9D-BDBD-0877EE044254")

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 -project MatApp.xcodeproj -configuration Debug -scheme MatApp -destination id=F4F5FF9B-9736-4D9D-BDBD-0877EE044254

User defaults from command line:

IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

ComputeTargetDependencyGraph

note: Building targets in dependency order

note: Target dependency graph (1 target)

Target 'MatApp' in project 'MatApp' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x objective-c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x objective-c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Users/kimhaneui/MatApp/ios/MatApp/Images.xcassets

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: d36cd904d40a57305a0ca15973361710

Build description path: /Users/kimhaneui/Library/Developer/Xcode/DerivedData/MatApp-amsjgjqwkyggrzfvexketjxzxmor/Build/Intermediates.noindex/XCBuildData/d36cd904d40a57305a0ca15973361710.xcbuilddata

/Users/kimhaneui/MatApp/ios/MatApp.xcodeproj:1:1: error: Unable to open base configuration reference file '/Users/kimhaneui/MatApp/ios/Pods/Target Support Files/Pods-MatApp/Pods-MatApp.debug.xcconfig'. (in target 'MatApp' from project 'MatApp')

warning: Unable to read contents of XCFileList '/Target Support Files/Pods-MatApp/Pods-MatApp-resources-Debug-output-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

warning: Unable to read contents of XCFileList '/Target Support Files/Pods-MatApp/Pods-MatApp-frameworks-Debug-output-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MatApp' from project 'MatApp')

error: Unable to load contents of file list: '/Target Support Files/Pods-MatApp/Pods-MatApp-frameworks-Debug-input-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

error: Unable to load contents of file list: '/Target Support Files/Pods-MatApp/Pods-MatApp-frameworks-Debug-output-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

error: Unable to load contents of file list: '/Target Support Files/Pods-MatApp/Pods-MatApp-resources-Debug-input-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MatApp' from project 'MatApp')

warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MatApp' from project 'MatApp')

error: Unable to load contents of file list: '/Target Support Files/Pods-MatApp/Pods-MatApp-resources-Debug-output-files.xcfilelist' (in target 'MatApp' from project 'MatApp')

warning: Run script build phase '[CP] Copy Pods Resources' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MatApp' from project 'MatApp')

--- xcodebuild: WARNING: Using the first of multiple matching destinations:

{ platform:iOS Simulator, id:F4F5FF9B-9736-4D9D-BDBD-0877EE044254, OS:18.3.1, name:iPhone 16 Pro }

{ platform:iOS Simulator, id:F4F5FF9B-9736-4D9D-BDBD-0877EE044254, OS:18.3.1, name:iPhone 16 Pro }

BUILD FAILED

The following build commands failed:

Building project MatApp with scheme MatApp and configuration Debug

(1 failure)

가상의 ios가 켜지긴 하는데 해당 에러 때문에 앱이 보이지 않고 있습니다. 왜그런걸까요?

답변 2

0

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

Pods와 Podfile.lock 을 삭제하고

cd ios && pod deintegrate pod install

명령어를 입력하여 재설치해보시겠어요?

팀 리미티드개발 공식 계정님의 프로필 이미지

감사합니다!

0

인프런 AI 인턴님의 프로필 이미지

안녕하세요, 인프런 AI 인턴입니다. 팀 리미티드개발 공식 계정님께서 겪고 계신 iOS 앱이 시뮬레이터에서 실행되지 않는 문제를 좀 더 깊이 있게 살펴보겠습니다.

문제 분석:

주로 나타나는 문제는 xcodebuild 과정에서의 빌드 실패입니다. 오류 메시지에서 Unable to open base configuration reference fileUnable to load contents of file list 같은 문구가 보이는데, 이는 주로 iOS 프로젝트의 Cocoapods 설정 문제와 연관이 있을 수 있습니다.

가능한 해결책:

  1. Pod 재설치:

    • Pods 디렉터리와 Podfile.lock 파일을 삭제하고 다시 설치해 보세요. 이는 누락된 Pod 설정을 해결할 수 있는 방법입니다.
    cd ios
    rm -rf Pods Podfile.lock
    pod install
    
  2. Xcode에서 프로젝트 클린:

    • Xcode에서 Project의 빌드 캐시를 정리하고, 다시 빌드해보세요.
    • Product > Clean Build Folder (Command + Shift + K) 명령어를 사용하세요.
  3. Cocoapods 및 기타 의존성 업데이트:

    • Cocoapods 버전이 오래된 경우, 업데이트하는 것이 도움이 될 수 있습니다.
    sudo gem update cocoapods
    pod install
    
  4. 시뮬레이터 초기화:

    • 경우에 따라 시뮬레이터의 설정 문제일 수 있습니다. 시뮬레이터를 초기화해 보세요.
    xcrun simctl shutdown all
    xcrun simctl erase all
    
  5. 환경 설정 점검:

    • npx react-native doctor 명령어를 통해 개발 환경 설정에 문제가 없는지 점검해보세요. 여기서 제안된 해결 방법을 따라 복구해 보십시오.
  6. 소스 코드 경로 확인:

    • 혹시 프로젝트 경로에 한글이나 공백이 포함되어 있는지 확인해 보세요. 프로젝트 파일 경로에 한글이나 공백이 포함되어 있으면 문제가 발생할 수 있습니다. 경로를 영어와 숫자만 사용하여 변경해보세요.

관련 사례 및 해결 방법으로는 다음 질문을 참고해 보세요:
- “ios 실행 시 에러”
- “시뮬레이터가 작동하지 않아요ㅠ”

위 내용들이 도움이 되길 바랍니다.

저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.

팀 리미티드개발 공식 계정님의 프로필 이미지

image.png

ios 는 문제가 없다고 나오는데 왜이런거지