admin管理员组

文章数量:1279015

I have made a react native app for android but i need to run that app on mac so what are the files to transfer. I have transfer ios folder on mac but its not running. Its showing the error 'React/RCTBridgeDelegate.h' file not found

my Reactnative code is

But how can i run it on mac using xcode.

I have made a react native app for android but i need to run that app on mac so what are the files to transfer. I have transfer ios folder on mac but its not running. Its showing the error 'React/RCTBridgeDelegate.h' file not found

my Reactnative code is

But how can i run it on mac using xcode.

Share Improve this question asked Oct 27, 2022 at 9:53 Rishabh Pratap SinghRishabh Pratap Singh 211 silver badge2 bronze badges 4
  • You can add code or error messages to your question instead of screenshots. – Mahmut Acar Commented Oct 27, 2022 at 13:13
  • What does your podfile look like? – Uch Commented May 6, 2023 at 20:37
  • 2 I our case we've get same error in two Macs with M1 cpu, and the solution to run the App was through Xcode going to Product, Destination, Destination Architecture and choose Show Rosetta destination. After that, the error stay but the App start running in emulator. – Sebastian Diaz Commented Jul 26, 2023 at 19:23
  • 1 @SebastianDiaz Thank you for the suggestion, this actual helped me to resolve running app from Xcode. – JavaResp Commented Sep 24, 2023 at 8:04
Add a ment  | 

3 Answers 3

Reset to default 9

If anyone else has had this problem and none of the solutions worked, make sure you opened "projectName".xcworkspace and not "projectName".xcodeproj with XCode.

Here are steps that worked for me today:

  1. Removed the following inside ios directory:
    • Podfile.lock
    • Pods
  2. Re-installed the pod files:
    • pod install

I still had the same issue, then I have run the app using Xcode instead of running from the terminal.

If none of the above fixes it, you might also try removing node_modules and run npm install or yarn install and do the same steps above again.

If you recently upgraded to macOS Sequoia, adjusting the project configuration should resolve the issue. Choose the configuration you need and link to it.

本文标签: javascript39ReactRCTBridgeDelegateh39 file not found in xcodeStack Overflow