티스토리 뷰

 

에러이미지

#13에서의 pod install에러 해결후 ios 기기로 빌드하려니까 

0.73 버전은 여러모로 문제가 많은거같다ㅠㅠ

 

 

추가 에러 로그

(아래는 일부며, 모두 복붙하면 지금 분량의 10배는 거뜬히 넘는 에러줄이엇다...)

included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-hermes/reacthermes/HermesExecutorFactory.h:11:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-jsiexecutor/jsireact/JSIExecutor.h:10:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-jsiexecutor/jsireact/JSINativeModules.h:13:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/ModuleRegistry.h:14:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/JSExecutor.h:13:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/NativeModule.h:13:
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic.h:301:19: warning: possible misuse of comma operator here [-Wcomma]
    return ++*this, self;
                  ^
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic.h:301:12: note: cast expression to void to silence warning
    return ++*this, self;
           ^~~~~~~
           static_cast<void>( )
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic.h:305:19: warning: possible misuse of comma operator here [-Wcomma]
    return --*this, self;
                  ^
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic.h:305:12: note: cast expression to void to silence warning
    return --*this, self;
           ^~~~~~~
           static_cast<void>( )
In file included from /Users/idohyeong/Desktop/NewProject/node_modules/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm:8:
In file included from /Users/idohyeong/Desktop/NewProject/node_modules/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h:25:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-hermes/reacthermes/HermesExecutorFactory.h:11:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-jsiexecutor/jsireact/JSIExecutor.h:10:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-jsiexecutor/jsireact/JSINativeModules.h:13:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/ModuleRegistry.h:14:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/JSExecutor.h:13:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/React-cxxreact/cxxreact/NativeModule.h:13:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic.h:1063:
In file included from /Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/dynamic-inl.h:22:
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/Conv.h:1134:44: warning: possible misuse of comma operator here [-Wcomma]
      [&](Tgt res) { return void(out = res), src; });
                                           ^
/Users/idohyeong/Desktop/NewProject/ios/Pods/Headers/Public/RCT-Folly/folly/Conv.h:1134:29: note: cast expression to void to silence warning
      [&](Tgt res) { return void(out = res), src; });
                            ^~~~~~~~~~~~~~~
                            static_cast<void>( )
8 warnings generated.

CompileC /Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/arm64/React-RCTAnimation-dummy.o /Users/idohyeong/Desktop/NewProject/ios/Pods/Target\ Support\ Files/React-RCTAnimation/React-RCTAnimation-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTAnimation' from project 'Pods')
    cd /Users/idohyeong/Desktop/NewProject/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/idohyeong/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.2-21C52-4f2951bfe8f3cd53c99228b0131e163e.sdkstatcache -target arm64-apple-ios13.4-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -std\=gnu11 -fobjc-arc -fmodules -fmodules-cache-path\=/Users/idohyeong/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/idohyeong/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 -fpascal-strings -O0 -fno-common -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 -Wdeprecate/Users/idohyeong/Desktop/NewProject/ios/NewProject/AppDelegate.mm:9:4: error: use of undeclared identifier 'GMSServices'
  [GMSServices provideAPIKey:@"AIzaSyD98Hij8J7886W64z0vZyXRcTYoBaq2X1c"];
   ^
1 warning and 1 error generated.

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/InputFileList-00EEFC60759A1932668264C0-Pods-NewProject-frameworks-Debug-input-files-e69aee1eb42930bf8383fe72e041b411-resolved.xcfilelist'

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/InputFileList-E235C05ADACE081382539298-Pods-NewProject-resources-Debug-input-files-86c33f8fb8cc6314c23c4b0cdb1bf828-resolved.xcfilelist'

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/OutputFileList-00EEFC60759A1932668264C0-Pods-NewProject-frameworks-Debug-output-files-e3a9c12b77f641db9ba5b8e2b325fe6a-resolved.xcfilelist'note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/OutputFileList-E235C05ADACE081382539298-Pods-NewProject-resources-Debug-output-files-ca758e610485e6cd66af3d62ea90e767-resolved.xcfilelist'

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/Script-00EEFC60759A1932668264C0.sh'

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/Script-C38B50BA6285516D6DCD4F65.sh'

note: Removed stale file '/Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/Script-E235C05ADACE081382539298.sh'

warning: Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' 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 'hermes-engine' from project 'Pods')
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 'NewProject' from project 'NewProject')

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:5CE2F2A9-3D52-4D70-9B7A-849A0B064E38, OS:17.2, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:5CE2F2A9-3D52-4D70-9B7A-849A0B064E38, OS:17.2, name:iPhone SE (3rd generation) }
** BUILD FAILED **


The following build commands failed:
        CompileC /Users/idohyeong/Library/Developer/Xcode/DerivedData/NewProject-cddobceulcikbsaluepzjvbetxki/Build/Intermediates.noindex/NewProject.build/Debug-iphonesimulator/NewProject.build/Objects-normal/arm64/AppDelegate.o /Users/idohyeong/Desktop/NewProject/ios/NewProject/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'NewProject' from project 'NewProject')
(1 failure)
]

Node.js v20.9.0
idohyeong@MacBook-Air-5 ios %

해결책

Package.json파일에서 

"ios": "react-native run-ios --verbose"

후에 터미널에서 

cd ios
rm Podfile.lock
rm -rf Pods
rm -rf NewProject.xcworkspace   (프로젝트명.xcworkspace)
rm -rf ~/Library/Developer/Xcode/DerivedData/*

zsh: sure you want to delete all 29 files in /Users/idohyeong/Library/Developer/Xcode/DerivedData [yn]?  엔터!

pod install
npm run ios

 

 

Reference

 

https://github.com/facebook/react-native/issues/39903

 

iOS Release build from XCode fails at "[CP-User] [Hermes] Replace Hermes for the right configuration, if needed" step after addi

New Version 0.73.0-rc.1 Old Version 0.72.5 Build Target(s) iOS Simulator, Release mode Output of react-native info System: OS: macOS 13.5.2 CPU: (10) arm64 Apple M1 Max Memory: 28.10 GB / 64.00 GB ...

github.com

🙏🏻

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함