• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    해결됨

시뮬레이터가 작동하지 않아요ㅠ

24.04.25 19:56 작성 조회수 167

1

상황: 1-5 강의 듣는중이고,

ruby 2.7.6 까지 세팅 하였습니다.

(과정에 조금 문제가 있었지만 성공);

npx ~ --version 0.72.6 에러 없이 성공

그 후 npm run ios >> 시뮬레이터 뜸 >> 앱 실행 안됨

에러 내용이 너무 많아 처음과 끝만 올렸어요ㅠ

info Found Xcode workspace "MatdoriApp.xcworkspace"
info Found booted iPhone SE (3rd generation)
info Launching iPhone SE (3rd generation)
info Building (using "xcodebuild -workspace MatdoriApp.xcworkspace -configuration Debug -scheme MatdoriApp -destination id=CBBF6748-CE87-48B0-B69A-")

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 
.
.
.

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening MatdoriApp.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace MatdoriApp.xcworkspace -configuration Debug -scheme MatdoriApp -destination id=CBBF6748-CE87-48B0-B69A-14A62A514208

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages



warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, 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 'MatdoriApp' from project 'MatdoriApp')
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 warning, 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 'MatdoriApp' from project 'MatdoriApp')

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:CBBF6748-CE87-48B0-B69A-, OS:17.4, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:CBBF6748-CE87-48B0-B69A-, OS:17.4, name:iPhone SE (3rd generation) }
** BUILD FAILED **


The following build commands failed:
	CompileC /Users/ajrfyd/Library/Developer/Xcode/DerivedData/MatdoriApp-dzlyrdyzrnadjbcljrudendrtkwk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/arm64/FlipperPlatformWebSocket.o /Users/ajrfyd/Desktop/practice/inflearn/MatdoriApp/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')
(1 failure)

환경:

OS: macOS 14.4.1

CPU: (8) arm64 Apple M1

 Node: 18.16.0

Yarn: 1.22.22

 npm: 9.5.1

Watchman: 2024.04.15.00

CocoaPods: 1.15.2

iOS SDK:

    Platforms:

      - DriverKit 23.4

      - iOS 17.4

      - macOS 14.4

      - tvOS 17.4

  Android SDK: Not Found // 이건 왜 그런지 몰겠음...

강의 따라 설치 되어 있는데..ㅠ

Android Studio: 2022.1 AI-221.6008.13.2211.9619390

 Xcode: 15.3/15E204a

Java: 17.0.11

 Ruby: 2.7.6

npmPackages:

  "@react-native-community/cli": Not Found

  react: 18.2.0

  react-native: 0.72.6

  react-native-macos: Not Found

npmGlobalPackages:

  "*react-native*": Not Found

Android:

  hermesEnabled: true

  newArchEnabled: false

iOS:

  hermesEnabled: true

  newArchEnabled: false

 

에러 내용으로 아무리 검색 해 봐도 답이 없네요ㅠ

도와 주실 수 있을까요??

참고로 예전에 리엑트 네이티브, 엑스포 프로젝트 좀 했었고,

이번에 한번 다시 듣고파 결제 했습니다 .

xcode 버전 지원안된다 하여 최신으로 깔고, watchman

python에러 잡아서 다시 깔고, 루비 이슈 해결하고, 안드로이드 스튜디오는 딱히 다시 깔지 않아도 될것 같아 놔두고 설명해 주신 이미지 13이랑 32?? 등등 깔고, 공식문서에서

이미 깔린 react-native/cli는 지우는걸 추천해서 지우고

이정도 입니다 ..

답변 5

·

답변을 작성해보세요.

1

ajrfyd님의 프로필

ajrfyd

질문자

2024.04.26

감사합니다 !

 

위의 #include <functional> 추가해 보라는 답변으로

해결 되었습니다 !

프로젝트 제거 후 다시 만들어 실행해도 같은 오류 발생하고

저 코드 하나만 추가 후 빌드시 성공 하는 것,

최신 rn 버전 0.74?는 프로젝트 만든 뒤 바로 실행되는것을

보니 0.72.6 버전과 지금 저의 맥 환경 뭔가 꼬인듯 하네요

스크린샷 2024-04-26 오전 9.50.54.png혹 위의 콘솔은 무시 해도 괜찮을까요???

Kyo님의 프로필

Kyo

지식공유자

2024.04.26

해결되어 다행입니다! warning은 무시해도됩니다

1

Kyo님의 프로필

Kyo

지식공유자

2024.04.25

안녕하세요. 아래처럼 ios 폴더에서 pod 제거후 다시 설치하고 실행해보시겠어요?

 

cd ios
rm -rf Pods
rm -rf Podfile.lock
pod install
Kyo님의 프로필

Kyo

지식공유자

2024.04.25

또한 프로젝트>ios>프로젝트명.xcworkspace 파일로 Xcode를 열어서

Product > Clean build folder (또는 Command + Shift+K) 실행후에

빌드도 해보시구요.

0

ajrfyd님의 프로필

ajrfyd

질문자

2024.04.26

스크린샷 2024-04-26 오전 9.18.05.png에러 내용은 이렇구요ㅠㅠ

 

xCode > buildphase <<<< 이게 일단 어디있는지 모르겠네요ㅠ
추가 답변 해 주신거 일단 참고해서 해보겠습니닸!@

Kyo님의 프로필

Kyo

지식공유자

2024.04.26

#include <functional> 추가하라는 답변 봐주시면 됩니다

0

ajrfyd님의 프로필

ajrfyd

질문자

2024.04.26

죄송해요ㅠ 이미 해봤는데 실패한 방법입니다 ㅠㅠ

 

아래 방법은 아예 중간에 빌드가 실패 하구요ㅠ

 

Kyo님의 프로필

Kyo

지식공유자

2024.04.26

Xcode로 빌드할때 어떤메세지와 함께 실패하나요?

Kyo님의 프로필

Kyo

지식공유자

2024.04.26

Xcode > BuildPhase에서 [CP] Copy Pods Resources를 삭제하고 Shift+Command+K 누르고 빌드해보시겠어요?

0

인프런 AI 인턴님의 프로필

인프런 AI 인턴

2024.04.25

안녕하세요, 인프런 AI 인턴입니다. ajrfyd님의 상황을 듣고 관련된 정보를 찾으려 노력했습니다.

ajrfyd님께서 겪고 계시는 문제는 iOS 시뮬레이터에서 React Native 앱이 실행되지 않는 경우로 보입니다. 에러 메시지 중 특히 FlipperKit 관련 에러가 눈에 띕니다. 이와 유사한 상황을 겪고 계신 분의 질문과 해결책을 공유한 답변이 있어, 이를 참고하시면 도움이 될 것 같습니다.

공유드리는 답변에서는 FlipperKit과 관련하여 xcode에서 빌드시 에러가 발생했을 때의 해결 방법을 포함하고 있습니다. 여러분이 설명하신 상황과 일치하여, 해당 해결책이 유용할 수 있습니다.

문제의 원인과 해결책이 정확히 일치한다고 확신은 할 수 없으나, ajrfyd님의 경우와 유사한 문제를 겪었던 다른 사용자의 해결 과정이 도움이 될 수 있을 것으로 보입니다.

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