cometchat-sample-app-react-native icon indicating copy to clipboard operation
cometchat-sample-app-react-native copied to clipboard

Can't run locally on iOS

Open alemar11 opened this issue 1 year ago • 1 comments
trafficstars

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

alemar11 avatar Mar 12 '24 16:03 alemar11

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

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

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"

alemar11 avatar Mar 13 '24 09:03 alemar11

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

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

alemar11 avatar Mar 13 '24 17:03 alemar11

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!

mayur-bhandari avatar Mar 14 '24 09:03 mayur-bhandari

@mayur-bhandari commenting the line fixed the build problem

alemar11 avatar Mar 18 '24 09:03 alemar11

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