해결된 질문
작성
·
391
1
이걸 해결하기 위해선 ios/podfile에서 플리퍼 관련 코드를 없애야됩니다.
podfile 통째로 복사해서 지피티에게 준 다음에 'flipper 안 사용하게 코드 수정해줘.' 라고 해서 깔끔하게 제거된 podfile 코드를 받아 pod install해서 해결은 했습니다..
다른 분들은 어떻게 해결하시는지 궁금하네요.
답변 2
1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.5-21F77-c098706a9f71eba4e76ae92ab367209a.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Index.noindex/DataStore @/Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTText.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp -include /Users/jeongbeomhwan/Desktop/MatzipApp/ios/Pods/Target\ Support\ Files/React-RCTText/React-RCTText-prefix.pch -MMD -MT dependencies -MF /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTText.build/Objects-normal/arm64/RCTInputAccessoryViewManager.d --serialize-diagnostics /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTText.build/Objects-normal/arm64/RCTInputAccessoryViewManager.dia -c /Users/jeongbeomhwan/Desktop/MatzipApp/node_modules/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.m -o /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTText.build/Objects-normal/arm64/RCTInputAccessoryViewManager.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/React-RCTText.build/Objects-normal/arm64/RCTInputAccessoryViewManager.o
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 'MatzipApp' from project 'MatzipApp')
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 'MatzipApp' from project 'MatzipApp')
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:62895F65-14EC-469F-8223-EBD2DFEB9CDD, OS:17.5, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:62895F65-14EC-469F-8223-EBD2DFEB9CDD, OS:17.5, name:iPhone SE (3rd generation) }
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jeongbeomhwan/Library/Developer/Xcode/DerivedData/MatzipApp-fumjpqtzqfzshtcuxvurdlgmuxof/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/arm64/FlipperPlatformWebSocket.o /Users/jeongbeomhwan/Desktop/MatzipApp/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)
이 에러였습니다. 지피티에게 물어보니
FlipperKit 관련 문제: FlipperKit에서 컴파일 오류가 발생하고 있습니다. 이 문제는 FlipperKit 설정 또는 해당 라이브러리의 버전 호환성 문제일 수 있습니다.
라는 대답을 해줬습니다.
그런데 전에도 0.72이전 프로젝트 세팅할 때 flipper 땜에 에러난 적이 있었는데, 아마도 flipper가 최근에 deprecated되었다고 들어서 그게 원인일거라고 생각했습니다. 그래서 podfile에서 flipper 관련 사용 로직을 안 사용하도록 우회하거나 아예 제거하는 방식으로 해결해야된다고 생각했습니다. 그리고 flipper 관련 로직을 없애니 정상실행이 되긴 했습니다. 저도 이게 최선의 방법인지는 모르겠습니다. 더욱 좋은 해결방안이 있었을까용!?
1
flipper 관련 에러라는게 어떤 에러인가요? 다음과 동일한 에러라면
Called object type 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer
아래와 같은 해결방법이 있습니다
https://github.com/facebook/react-native/issues/43335#issuecomment-1980285308
문제없이 잘 실행된다면 괜찮아보입니다!