Rocket.Chat.ReactNative
Rocket.Chat.ReactNative copied to clipboard
could not build debug for development on ios
Description:
I've cloned the repository and trying to run the application for development on my Mac M1 laptop:
I see the errors below:
- For this one I hit fix and click build again and this error is gone
- 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
Steps to reproduce:
- Clone the app
- Change to the project directory and run
yarnto install dependencies - Run
npx pod-installto fetch and install pod packages and dependencies - Open XCode using command
xed -b iosand 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:
@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.