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

IOS build takes too long and never finishes for 0.75.2 version #46380

Closed
SergenSiyli opened this issue Sep 7, 2024 · 8 comments
Closed

IOS build takes too long and never finishes for 0.75.2 version #46380

SergenSiyli opened this issue Sep 7, 2024 · 8 comments

Comments

@SergenSiyli
Copy link

Description

I m trying to run npx react-native run-ios command. But I'm waiting too long time for build. I m still waiting 1 hours.
I think the latest version of react native has problems for ios.
I've been waiting for hours for the app to open in the simulator. I tried many option. I deleted simulator ,reset macbook and created new project. but still same ı think has problem for ios build this version 0.75.2.
⠼ Building the app.........

Steps to reproduce

npx @react-native-community/cli@latest init AwesomeProject
npx react-native run-ios

React Native Version

0.75.2

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M2
  Memory: 2.95 GB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.1.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2024.03.18.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11090377
  Xcode:
    version: 15.0/15A240d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.3
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.2
    wanted: 0.75.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

⠼ Building the app.........

Reproducer

https://github.com/SergenSiyli

Screenshots and Videos

Screenshot 2024-09-07 at 22 48 03

@react-native-bot react-native-bot added Platform: iOS iOS applications. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Sep 7, 2024
@react-native-bot
Copy link
Collaborator

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

@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:

@cipolleschi
Copy link
Contributor

@SergenSiyli sorry to hear that the build time is taking too long.

Can you check a couple of things for me?

  1. Can you try to build from Xcode and see if the build numbers increases or not?
Screenshot 2024-09-09 at 12 11 10
  1. Can you run bundle exec pod deintegrate and then reinstall pods? What I'm looking for is to understand whether you are using a prebuild version of Hermes or if you are trying to build hermes from source, as it is usually one of the pieces that takes most time (and that's why we are distributing prebuilds)
Screenshot 2024-09-09 at 12 14 08 See the yellow line in the screenshot

@SergenSiyli
Copy link
Author

@SergenSiyli sorry to hear that the build time is taking too long.

Can you check a couple of things for me?

  1. Can you try to build from Xcode and see if the build numbers increases or not?
Screenshot 2024-09-09 at 12 11 10 2. Can you run `bundle exec pod deintegrate` and then reinstall pods? What I'm looking for is to understand whether you are using a prebuild version of Hermes or if you are trying to build hermes from source, as it is usually one of the pieces that takes most time (and that's why we are distributing prebuilds)

Screenshot 2024-09-09 at 12 14 08 See the yellow line in the screenshot

1-) IOS Build Result:
Screenshot 2024-09-09 at 19 06 51

Screenshot 2024-09-09 at 19 08 11

2-) My pod install result:

Screenshot 2024-09-09 at 19 10 32

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Sep 9, 2024
@SergenSiyli SergenSiyli reopened this Sep 9, 2024
@cipolleschi
Copy link
Contributor

@SergenSiyli That error is because you are not running Metro.

in a separate terminal window, please run:

1. cd <path-to-your-project>
2. yarn start

Then relaunch the app or press the Reload button in the tab bar of the Red screen.

Build was successful if you ended up in that screen.

@SergenSiyli
Copy link
Author

@SergenSiyli That error is because you are not running Metro.

in a separate terminal window, please run:

1. cd <path-to-your-project>
2. yarn start

Then relaunch the app or press the Reload button in the tab bar of the Red screen.

Build was successful if you ended up in that screen.

I solved the problem in the first item. I got a successful build on xcode. But the application still does not build with the npx react-native run-ios command. What can I do?

@EzioLi01
Copy link

EzioLi01 commented Sep 12, 2024

Same system (Apple M2, macOS 14.6.1) and same issue, from 0.75.

@cipolleschi
Copy link
Contributor

duplicate of #46352, please focus all the comments on the previous issue.
We will work on this soon. Until then, please use Xcode to build if you are facing the issue.

Also, we use the same command on CI to build a sample project called hello world and I tested that yarn ios worked for me in a new project with 0.75.2. There might be something going on with your system configuration.

@cortinico cortinico added Resolution: Duplicate and removed Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Sep 12, 2024
@facebook facebook locked as resolved and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants