Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

could not build debug for development on ios

Open emadbaqeri opened this issue 1 year ago • 1 comments

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
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:

  • Rocket.Chat Server Version: No Server, Just cloned the project and would like to contribute
  • Rocket.Chat App Version: 4.48.0
  • Device Name: iPhone 15 Pro with iOS 17.4 runtime
  • OS Version: Mac M1 Pro macOS Sonoma 14.1.1

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

emadbaqeri avatar Apr 19 '24 23:04 emadbaqeri

@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.

Chirtep avatar Apr 22 '24 09:04 Chirtep