facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.59k stars 24.37k forks source link

after upgrade to 0.73 and xcode version to xcode15 i just can build success by xcode run button, react-native run-ios on terminal will come some error #42557

Closed tianzige886 closed 3 weeks ago

tianzige886 commented 10 months ago

Description

I upgrade the reactnative version from 0.72 to 0.73 and upgrade xcode version to xcode15 and ios17, now i couldn't run-ios by terminal, it will come some error out on terminal, but i can run success by xcode run button.

Steps to reproduce

  1. npm i
  2. cd ios & pod install
  3. react-native run-ios
  4. error....

React Native Version

0.73.2

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M2
    Memory: 104.09 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    Yarn: Not Found
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.14.3 - /Users/zhangsan/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.1 AI-231.9392.1.2311.11255304
    Xcode: 15.2/15C500b - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.10 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.73.2 => 0.73.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (97 targets)
    Target 'bulb2' in project 'bulb2'
        ➜ Implicit dependency on target 'Pods-bulb2' in project 'Pods' via file 'libPods-bulb2.a' in build phase 'Link Binary'
    Target 'Pods-bulb2' in project 'Pods'
        ➜ Explicit dependency on target 'AMapFoundation' in project 'Pods'
        ➜ Explicit dependency on target 'AMapLocation' in project 'Pods'
        ➜ Explicit dependency on target 'BVLinearGradient' in project 'Pods'
        ➜ Explicit dependency on target 'CocoaAsyncSocket' in project 'Pods'
        ➜ Explicit dependency on target 'DoubleConversion' in project 'Pods'
        ➜ Explicit dependency on target 'FBLazyVector' in project 'Pods'
        ➜ Explicit dependency on target 'FBReactNativeSpec' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-DoubleConversion' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-Fmt' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-Folly' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-Glog' in project 'Pods'
        ➜ Explicit dependency on target 'Flipper-PeerTalk' in project 'Pods'
        ➜ Explicit dependency on target 'FlipperKit' in project 'Pods'
        ➜ Explicit dependency on target 'OpenSSL-Universal' in project 'Pods'
        ➜ Explicit dependency on target 'PromisesObjC' in project 'Pods'
        ➜ Explicit dependency on target 'PromisesSwift' in project 'Pods'
        ➜ Explicit dependency on target 'RCT-Folly' in project 'Pods'
        ➜ Explicit dependency on target 'RCTRequired' in project 'Pods'
        ➜ Explicit dependency on target 'RCTSystemSetting' in project 'Pods'
        ➜ Explicit dependency on target 'RCTTypeSafety' in project 'Pods'
        ➜ Explicit dependency on target 'RNCAsyncStorage' in project 'Pods'
        ➜ Explicit dependency on target 'RNCPicker' in project 'Pods'
        ➜ Explicit dependency on target 'RNFastImage' in project 'Pods'
        ➜ Explicit dependency on target 'RNGestureHandler' in project 'Pods'
        ➜ Explicit dependency on target 'RNImageCropPicker' in project 'Pods'
        ➜ Explicit dependency on target 'RNLocalize' in project 'Pods'
        ➜ Explicit dependency on target 'RNScreens' in project 'Pods'
        ➜ Explicit dependency on target 'RNShare' in project 'Pods'
        ➜ Explicit dependency on target 'RNVectorIcons' in project 'Pods'
        ➜ Explicit dependency on target 'React' in project 'Pods'
        ➜ Explicit dependency on target 'React-Codegen' in project 'Pods'
        ➜ Explicit dependency on target 'React-Core' in project 'Pods'
        ➜ Explicit dependency on target 'React-CoreModules' in project 'Pods'
        ➜ Explicit dependency on target 'React-Fabric' in project 'Pods'
        ➜ Explicit dependency on target 'React-FabricImage' in project 'Pods'
        ➜ Explicit dependency on target 'React-ImageManager' in project 'Pods'
        ➜ Explicit dependency on target 'React-Mapbuffer' in project 'Pods'
        ➜ Explicit dependency on target 'React-NativeModulesApple' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTActionSheet' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTAnimation' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTAppDelegate' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTBlob' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTFabric' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTImage' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTLinking' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTNetwork' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTSettings' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTText' in project 'Pods'
        ➜ Explicit dependency on target 'React-RCTVibration' in project 'Pods'
        ➜ Explicit dependency on target 'React-callinvoker' in project 'Pods'
        ➜ Explicit dependency on target 'React-cxxreact' in project 'Pods'
        ➜ Explicit dependency on target 'React-debug' in project 'Pods'
        ➜ Explicit dependency on target 'React-graphics' in project 'Pods'
        ➜ Explicit dependency on target 'React-hermes' in project 'Pods'
        ➜ Explicit dependency on target 'React-jserrorhandler' in project 'Pods'
        ➜ Explicit dependency on target 'React-jsi' in project 'Pods'
        ➜ Explicit dependency on target 'React-jsiexecutor' in project 'Pods'
        ➜ Explicit dependency on target 'React-jsinspector' in project 'Pods'
        ➜ Explicit dependency on target 'React-logger' in project 'Pods'
        ➜ Explicit dependency on target 'React-nativeconfig' in project 'Pods'
        ➜ Explicit dependency on target 'React-perflogger' in project 'Pods'
        ➜ Explicit dependency on target 'React-rendererdebug' in project 'Pods'
        ➜ Explicit dependency on target 'React-rncore' in project 'Pods'
        ➜ Explicit dependency on target 'React-runtimeexecutor' in project 'Pods'
        ➜ Explicit dependency on target 'React-runtimescheduler' in project 'Pods'
        ➜ Explicit dependency on target 'React-utils' in project 'Pods'
        ➜ Explicit dependency on target 'ReactCommon' in project 'Pods'
        ➜ Explicit dependency on target 'ReactNativeLocalization' in project 'Pods'
        ➜ Explicit dependency on target 'SDWebImage' in project 'Pods'
        ➜ Explicit dependency on target 'SDWebImageWebPCoder' in project 'Pods'
        ➜ Explicit dependency on target 'SocketRocket' in project 'Pods'
        ➜ Explicit dependency on target 'TOCropViewController' in project 'Pods'
        ➜ Explicit dependency on target 'Yoga' in project 'Pods'
        ➜ Explicit dependency on target 'boost' in project 'Pods'
        ➜ Explicit dependency on target 'fmt' in project 'Pods'
        ➜ Explicit dependency on target 'glog' in project 'Pods'
        ➜ Explicit dependency on target 'hermes-engine' in project 'Pods'
        ➜ Explicit dependency on target 'libevent' in project 'Pods'
        ➜ Explicit dependency on target 'libwebp' in project 'Pods'
        ➜ Explicit dependency on target 'react-native-amap-geolocation' in project 'Pods'
        ➜ Explicit dependency on target 'react-native-cameraroll' in project 'Pods'
        ➜ Explicit dependency on target 'react-native-date-picker' in project 'Pods'
        ➜ Explicit dependency on target 'react-native-geolocation' in project 'Pods'
        ➜ Explicit dependency on target 'react-native-geolocation-service' in project 'Pods'

Reproducer

https://github.com/react-native-community/reproducer-react-native

Screenshots and Videos

No response

github-actions[bot] commented 10 months ago
:warning: Missing Reproducible Example
:information_source: 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.
tianzige886 commented 10 months ago

im sorry, my project didn't publish on app store, i dont want to upload to git yet. when i init a new project, it will not have this problem, i upgrade my app from 0.72 version to 0.73 version, it will happend. i can show you my package.json { "name": "bul2", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@ant-design/icons-react-native": "^2.3.2", "@ant-design/react-native": "^5.0.5", "@react-native-async-storage/async-storage": "^1.21.0", "@react-native-camera-roll/camera-roll": "^7.2.2", "@react-native-community/geolocation": "^3.1.0", "@react-native-community/segmented-control": "^2.2.2", "@react-native-community/slider": "^4.5.0", "@react-native-picker/picker": "^2.6.1", "@react-navigation/bottom-tabs": "^6.5.10", "@react-navigation/native": "^6.0.0", "@react-navigation/native-stack": "^6.9.15", "@rneui/base": "^4.0.0-rc.8", "@rneui/themed": "^4.0.0-rc.8", "axios": "^0.24.0", "dayjs": "^1.11.10", "form-data": "^4.0.0", "mobx": "^6.10.2", "mobx-react": "^9.0.1", "moment": "^2.29.4", "react": "18.2.0", "react-intl": "^6.5.5", "react-native": "0.73.2", "react-native-amap-geolocation": "^1.2.3", "react-native-date-picker": "^4.3.3", "react-native-fast-image": "^8.6.3", "react-native-flexi-radio-button": "^0.2.2", "react-native-geocoding": "^0.5.0", "react-native-geolocation-service": "^5.3.1", "react-native-gesture-handler": "^2.14.0", "react-native-google-places-autocomplete": "^2.5.6", "react-native-image-crop-picker": "^0.40.2", "react-native-linear-gradient": "^2.8.3", "react-native-localization": "^2.3.2", "react-native-localize": "^3.0.4", "react-native-media-controls": "^2.3.0", "react-native-safe-area-context": "^4.7.3", "react-native-screens": "^3.29.0", "react-native-share": "^10.0.1", "react-native-slider": "^0.11.0", "react-native-splash-screen": "^3.3.0", "react-native-storage": "^1.0.1", "react-native-swiper-flatlist": "^3.2.3", "react-native-system-setting": "^1.7.6", "react-native-vector-icons": "^10.0.0", "react-native-video": "^6.0.0-alpha.8", "react-native-video-controls": "^2.8.1", "react-native-webview": "^13.6.3" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.73.19", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.3", "@react-native/typescript-config": "0.73.1", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "^2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" } }

frpaf commented 9 months ago

The issue is still happening with even the recent version of react native . The app is created with npx react-native@latest init AwesomeProject "react-native": "0.73.4" Xcode 15.2 Build version 15C500b

ilanRosenbaum commented 9 months ago

What is the error message?

wootsbot commented 9 months ago

Does anyone know if this can be solved? I have the same problem.

ilanRosenbaum commented 9 months ago

@wootsbot My solution was to revert back to 0.70.6... :(

dbs-tuan commented 9 months ago

run xcrun simctl list devices to list all available iOS devices anh then run npx react-native run-ios --simulator="Device Name" (replace "Device Name" with one of your available iOS devices)

Vladimirrr666 commented 7 months ago

have same problem with xcode 15.3 and react-native 0.73.6

Vasault commented 7 months ago

recently started to get this error, previous version of react native was fine

react-native-bot commented 1 month ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

react-native-bot commented 3 weeks ago

This issue was closed because it has been stalled for 7 days with no activity.