RocketChat / Rocket.Chat.ReactNative

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

Could not build debug for development on ios #5994

Open lahama123 opened 1 week ago

lahama123 commented 1 week ago

Description:

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

I see the errors below:

  1. For FMDB error, I added pod 'FMDB', '~> 2.7.5' to Podfile and the error disappeared Ảnh màn hình 2024-11-14 lúc 15 53 41
  2. I am currently getting this error Ảnh màn hình 2024-11-12 lúc 17 37 21

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

Conrado916645 commented 4 days ago

Im having the same issue.

diegolmello commented 4 days ago

Possibly related to Xcode 16 and duplicate of https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/5877

Can you try this? https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/5877#issuecomment-2393140759

lahama123 commented 1 day ago

I switched to the single-server branch, and also followed #5877. Now I'm getting an error ❌ fatal error: module 'MMKV' in AST file '/Users/luanlq/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/11VXJ14B462VN/MMKV-10E29FEUR7Q2O.pcm' (imported by AST file '/Users/luanlq/Library/Developer/Xcode/DerivedData/RocketChatRN-haqhwjhkbdnuetgnjparxfcmwaqc/Build/Intermediates.noindex/PrecompiledHeaders/RocketChatRN-Bridging-Header-swift_JLWOM4RNGQUF-clang_11VXJ14B462VN.pch') is not defined in any loaded module map file; maybe you need to load '/Users/luanlq/Documents/work/react-native/app_chat/ios/Pods/Headers/Public/MMKV/MMKV.modulemap'?