RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
1.91k stars 1.14k forks source link

could not build debug for development on ios #5660

Open emadbaqeri opened 2 months ago

emadbaqeri commented 2 months ago

Description:

I've cloned the repository and trying to run the application for development on my Mac M1 laptop:

I see the errors below:

  1. For this one I hit fix and click build again and this error is gone Screenshot 2024-04-20 at 02 16 41
  2. For this one I hit fix and it updates that part of code but the build error is still there as you can see on 3rd screenshot Screenshot 2024-04-20 at 02 17 45
  3. Screenshot 2024-04-20 at 02 17 55

Steps to reproduce:

  1. Clone the app
  2. Change to the project directory and run yarn to install dependencies
  3. Run npx pod-install to fetch and install pod packages and dependencies
  4. Open XCode using command xed -b ios and hit build button to build the application

Environment Information:

Expected behavior:

I expect to have the debug version of the application to run on my simulator

Actual behavior:

You can see the actual behavior on the screenshots attached above

Additional context:

Screenshot 2024-04-20 at 02 35 55 Screenshot 2024-04-20 at 02 36 17
Chirtep commented 2 months ago

@emadbaqeri I found a workaround for the problems in the 2nd and 3rd screenshot. At the beginning of the file, under line 3, you need to add an entry: #include <functional> After that, the build should compile without problems.