cometchat / cometchat-sample-app-react-native

Voice & Video Calling and Text Chat App for React Native
https://www.cometchat.com
Other
328 stars 158 forks source link

Can't run locally on iOS #90

Closed alemar11 closed 6 months ago

alemar11 commented 6 months ago

Describe the problem

Can't run the sample locally on an iOS simulator using npx react-native run-ios --simulator="iPhone 15"

The following build commands failed:
    CompileC  ... CometChatWorkspace/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')
cometchat-helpcenter-bot commented 6 months ago

Keagan (CometChat Team) replied:

Hello,

Thank you for reaching out. I am Keagan from the Support team.

Please allow us some time to review the details and circle back with more Information.

Regards

Keagan Ellis CometChat

cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

Could you please share the exact steps you took which led to the issue? This will help us understand and resolve the problem more effectively.

Regards,

Prathmesh Parteki CometChat

alemar11 commented 6 months ago
git clone https://github.com/cometchat-pro/react-native-chat-app.git -b v4

cd CometChatWorkspace

npm install --legacy-peer-deps

cd ios && pod update

npm start

npm run ios -- --udid=“IPHONE SIMULATORE ID HERE"
cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

Could you please try running the app from the Xcode after starting the metro server? And let us know if this resolves the issue.

Regards,

Prathmesh Parteki CometChat

alemar11 commented 6 months ago

Hi, the problem remains the same I guess

Screenshot 2024-03-13 alle 18 31 57

I'm using Xcode 15.3 with Sonoma 14.4 The issues seems the same described here

mayur-bhandari commented 6 months ago

Hi,

This is an issue in the Flipper SDK in Xcode 15. There is a fix available in Flipper GH Repo. As a workaround you can comment the below line in the Podfile (present in the ios folder).

:flipper_configuration => flipper_config,

Hope this helps!

alemar11 commented 6 months ago

@mayur-bhandari commenting the line fixed the build problem

cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi there,

Glad we were able to help you resolve the issue. We will close this ticket for now, please feel free to reach out to us in case you have any other queries.

Regards,

Prathmesh Parteki CometChat