Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in 0.73.6 #44135

Open
sweatpotato13 opened this issue Apr 17, 2024 · 3 comments
Open

Build error in 0.73.6 #44135

sweatpotato13 opened this issue Apr 17, 2024 · 3 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍

Comments

@sweatpotato13
Copy link

Description

when I try yarn ios this error comes out

I make project with npx react-native init AwesomeApp --version 0.73.6 --skip-install

Steps to reproduce

  1. yarn install
  2. cd ios
  3. pod install
  4. cd ..
  5. yarn ios

React Native Version

0.73.6

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.4.1
  CPU: (8) arm64 Apple M2
  Memory: 150.47 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.0
    path: ~/.nvm/versions/node/v20.12.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.5.0
    path: ~/.nvm/versions/node/v20.12.0/bin/npm
  Watchman:
    version: 2024.04.15.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/user/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.2.2
    path: /Users/user/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: false
  newArchEnabled: false

Stacktrace or Logs

CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/logging.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/logging.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
    cd /Users/user/Desktop/AwesomeApp/ios/Pods
    /opt/homebrew/opt/llvm/bin/clang -x c++ -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/user/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 -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Index.noindex/DataStore @/Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -Wno-shorten-64-to-32 -include /Users/user/Desktop/AwesomeApp/ios/Pods/Target\ Support\ Files/glog/glog-prefix.pch -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/logging.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/logging.dia -c /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/logging.cc -o /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/logging.o
clang: error: unknown argument: '-index-store-path'
clang: error: cannot specify -o when generating multiple output files

CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/glog-dummy.o /Users/user/Desktop/AwesomeApp/ios/Pods/Target\ Support\ Files/glog/glog-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
    cd /Users/user/Desktop/AwesomeApp/ios/Pods
    /opt/homebrew/opt/llvm/bin/clang -x objective-c -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/user/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/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Index.noindex/DataStore @/Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp -include /Users/user/Desktop/AwesomeApp/ios/Pods/Target\ Support\ Files/glog/glog-prefix.pch -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/glog-dummy.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/glog-dummy.dia -c /Users/user/Desktop/AwesomeApp/ios/Pods/Target\ Support\ Files/glog/glog-dummy.m -o /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/glog-dummy.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 'AwesomeApp' from project 'AwesomeApp')

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:FA976238-9E7F-4562-AF62-FF8D4F83A191, OS:17.4, name:iPhone 15 Pro Max }
{ platform:iOS Simulator, id:FA976238-9E7F-4562-AF62-FF8D4F83A191, OS:17.4, name:iPhone 15 Pro Max }
** BUILD FAILED **


The following build commands failed:
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-utils.build/Objects-normal/arm64/RunLoopObserver.o /Users/user/Desktop/AwesomeApp/node_modules/react-native/ReactCommon/react/utils/RunLoopObserver.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-utils' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/vlog_is_on.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/vlog_is_on.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/utilities.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/utilities.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/symbolize.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/symbolize.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/signalhandler.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/signalhandler.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/raw_logging.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/raw_logging.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
	CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-gvkldetewsfdivgponimhhxzoysk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/arm64/logging.o /Users/user/Desktop/AwesomeApp/ios/Pods/glog/src/logging.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
(7 failures)
]

Reproducer

npx react-native init AwesomeApp --version 0.73.6 --skip-install

Screenshots and Videos

No response

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Apr 17, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@keShraa
Copy link

keShraa commented Apr 18, 2024

Looking at the upgrade-helper, you need to use a lower version of cocoapods: < 1.15.

However, I believe it is not recommended (or even not possible) to upgrade cocoapods to 1.15 to have a working RN env.

Hope that helped 🙏🏻

@sweatpotato13
Copy link
Author

using cocoapods : version: 1.14.3 and still got errors
CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/arm64/fmt-dummy.o /Users/user/Desktop/app736/ios/Pods/Target\ Support\ Files/fmt/fmt-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'fmt' from project 'Pods')
cd /Users/user/Desktop/app736/ios/Pods
/opt/homebrew/opt/llvm/bin/clang -x objective-c -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/user/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/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Index.noindex/DataStore @/Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp -include /Users/user/Desktop/app736/ios/Pods/Target\ Support\ Files/fmt/fmt-prefix.pch -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/arm64/fmt-dummy.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/arm64/fmt-dummy.dia -c /Users/user/Desktop/app736/ios/Pods/Target\ Support\ Files/fmt/fmt-dummy.m -o /Users/user/Library/Developer/Xcode/DerivedData/AwesomeApp-biqqhfnifnmrsdgxjyflevamyfmw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/arm64/fmt-dummy.o
clang: error: unknown argument: '-index-store-path'
clang: error: cannot specify -o when generating multiple output files

what is the -index-store-path?

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants