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

could not build debug for development on ios #5660

Open
emadbaqeri opened this issue Apr 19, 2024 · 1 comment
Open

could not build debug for development on ios #5660

emadbaqeri opened this issue Apr 19, 2024 · 1 comment

Comments

@emadbaqeri
Copy link

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:

  • 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
@Chirtep
Copy link

Chirtep commented Apr 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants