All Questions
Tagged with react-native xcode
2,551
questions
185
votes
35
answers
382k
views
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65
I've build a react-native application and suddenly I get this error message on my terminal during run of the command react-native run-ios.
The same code work fine 10 minutes ago and suddenly I get ...
149
votes
25
answers
196k
views
`React/RCTBridgeModule.h` file not found
Getting this error while building a react-native iOS app on xcode.
Started getting this error after npm install and rpm linking react-native-fs library. But after searching online for a solution, I ...
128
votes
26
answers
84k
views
"RCTBundleURLProvider.h" file not found - AppDelegate.m
I am trying to run my React Native app in XCode and I keep getting this error. I cannot figure out how to resolve the issue. Any suggestions?
Screen Shot of Error in XCode:
116
votes
13
answers
81k
views
iOS Launch screen in React Native
I'm working with a React Native app and I'm trying to set a customize launch screen but I'm not able to.
React Native creates a LaunchScreen.xib by default, so I've created a LaunchImage inside Images....
109
votes
20
answers
216k
views
How can I regenerate ios folder in React Native project?
So a while ago I deleted the /ios directory in my react native app (let's call it X). I've been developing and testing using the android emulator but now I'd like to make sure it works on ios with ...
108
votes
17
answers
57k
views
Xcode 15: Unable to boot the Simulator
I was able to run iOS simulator fine with Xcode 14 and my Mac recently updated the latest version of Xcode which is 15 then I'm no longer able to boot a device from its new simulator.
I did try many ...
95
votes
11
answers
66k
views
No template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
Just upgraded my Xcode to 15.0, and suddenly it started giving me the following error in RCT_Folly
No template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
this is the ...
91
votes
2
answers
57k
views
Use of bitwise '|' with boolean operands | Xcode 14.3 fails builds using react-native Yoga [closed]
Just updated my Xcode to Version 14.3 today and the build is failing with the following error in the Yoga file:
Use of bitwise '|' with boolean operands
Looks like we have some issues with the iOS ...
89
votes
16
answers
68k
views
Build error domain=com.apple.CoreSimulator.SimError, code=405
I can build on my iOS 15 emulator with no problems, but when building on my iOS 15 Device connected to xcode 13. I get the error:
error Failed to launch the app on simulator, An error was encountered ...
82
votes
27
answers
126k
views
main.jsbundle does not exist. this must be a bug with + echo 'react native
I tried to archive my react native project using Product > Archive on XCode9.2. But Xcode produce this error:
File /Users/louis/Library/Developer/Xcode/DerivedData/Scavenger-...
73
votes
6
answers
69k
views
React Native on Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64
I'm trying to build a React Native project on a MacBook Pro with a M1 architecture, for iOS simulator.
The project built nicely on Intel architecture.
It also build on device and archive well on M1. ...
65
votes
10
answers
49k
views
New React Native project with old version of react native
I am trying to create a new react native project which should utilize an older version of react-native.
The result I would like would be to do something like: react-native init MyProject but have the ...
59
votes
14
answers
46k
views
FBReactNativeSpec.h error after upgrading from 0.68.x to 0.69.0
I just upgraded from RN 0.68.x to 0.69.0 using the react-native upgrade command.Its shows an error about
FBReactNativeSpec
'value' is unavailable : introduced in ios 12.0 react native
and same error ...
58
votes
18
answers
58k
views
React native app stuck on splash screen on device but works in simulator
My React Native app works in the XCode simulator with no issues, but when I run in a physical device, my iPhone, there's a problem. The app launches and gets stuck on the React Native splash screen, ...
58
votes
1
answer
3k
views
How to profile React Native source code using Xcode/Instruments/Time Profiler
We're using React Native 0.59.10 and React-Redux 5.0.7, and are experiencing a CPU-bound performance issue, in which our Redux actions are taking ~0.25s to complete.
We've profiled using the Time ...
56
votes
4
answers
75k
views
React-native failed propType on Image component
I am just starting out with React-native and have a pretty decent grasp on React for creating web apps... I am running into a confusing issue here that never occured when working with react for the ...
55
votes
10
answers
56k
views
React Native / Xcode Upgrade and now RCTConvert.h not found
App ran fine on React Native 0.35.0. After updating to 0.40.0 via react-native-git-upgrade I get a number of lexical/preprocessor issues when trying to build/run the app in XCode.
React/...
54
votes
15
answers
36k
views
PhaseScriptExecution error in React Native app
Facing this error when I run react-native run-ios after creating the project
Error -
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug ...
54
votes
9
answers
82k
views
How to change the "Bundle Identifier" within React Native?
Starting a new react-native project, the xcode-project gots the bundle-identifier "org.reactjs.native.example.XYZApp". XYZ is the placeholder here for my real project name.
Is there any way to change ...
48
votes
6
answers
29k
views
RCT Linking Manager file not found
I want to use react native library RCTLinkingManager which shows up in menu under "Libraries > RCTLinkingManager.xcodeproj".
However when i add it to iOS/AppDelegate.m like so:
#import "...
46
votes
7
answers
42k
views
Trouble requiring image module in React Native
Just getting started with React-Native and I'm having some trouble requiring a static image.
Here's the very-basic code I have so far:
'use strict';
var React = require('react-native');
var {
...
45
votes
16
answers
62k
views
React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code
I am using a MacBook Pro with
M1 chip
MacOS Big Sur
Xcode Version 13.2.1
node v14.17.5
I wanted to follow this tutorial to set up a new React Native project called AwesomeProject https://reactnative....
41
votes
16
answers
42k
views
React Native - npx react-native run-ios doesn't work after initializing the project
After reading https://reactnative.dev/docs/environment-setup, I created a react-native project using npx react-native init ***.
It was successful, so, I tried to run the project using npx react-native ...
40
votes
18
answers
25k
views
Can't open dev menu via CMD+D or reload via CMD+R any longer
I can't open my dev menu via CMD+D or reload via CMD+R any longer. It just stopped working without me knowingly changing something.
Some more info:
Shake gesture still works, but not always
Live ...
39
votes
3
answers
19k
views
Xcode 11.0 build get error - Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]
On every build in Xcode i get this error. How can i fix it?
I found this commit https://github.com/facebook/react-native/pull/25146/commits/61b8b9e69d8609fecaaaa7d2c9e32808bc5e98cb which should fix ...
39
votes
8
answers
29k
views
React Native 0.64 won't build iOS app after updating Xcode to 12.5 and iOS to 14.5
After upgrading Xcode to 12.5 and iOS to 14.5, I can't run the iOS app on a real device nor in the simulator.
After running npm run ios, I get this message:
The following build commands failed:
...
37
votes
5
answers
47k
views
Xcode Cloud: unable to open configuration settings file
I'm working with a React Native project, setting up Xcode Cloud builds.
I keep getting this error:
unable to open configuration settings file
Pods-XXX.debug.xcconfig:1
The files in my workspace look ...
35
votes
11
answers
23k
views
configure: error: C compiler cannot create executables- React Native
I have been trying to build my react native project but getting error
React native version : .48.4
Xcode : 9.1
configure: WARNING: 'missing' script is too old or missing
checking for arm-apple-...
34
votes
8
answers
23k
views
"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur
I was trying to install React Native on my system, and found that it failed to install CocoaPods dependencies which is required by that template error.
sudo arch -x86_64 gem install ffi fixed this ...
34
votes
1
answer
17k
views
How to get iOS 12 Autofill to ask to save password in React Native app?
PROBLEM
I'm on React Native 0.59.9 (latest at the time of this post), and have a login screen in my mobile app that I would like iOS 12's autofill feature to pick up and save the password for a new ...
34
votes
8
answers
11k
views
React Native using pre-bundled file on device, even if DEV-mode
A few days ago, when I build and run my react native app from Xcode on a device, I realised that even if I set my scheme to Debug, the app is still loading from a pre-bundled file. Other than that, ...
33
votes
3
answers
94k
views
Unrecognized command "link" when linking fonts in react native
Trying to link custom fonts in a react native project, when using npx react-native link I get an error saying Unrecognized command "link"
Is there a way to resolve this?
33
votes
7
answers
28k
views
Build Failing for React Native iOS, "Multiple commands produce" Error
We were working on a react native project. One of my team members added some native modules on Linux and linked android. By then I am trying to link things in iOS but the build is always failing with ...
32
votes
10
answers
23k
views
"config.h" file not found in iOS project of React native
In X-Code project of react native, getting error
config.h file not found.
Here is version detail :
react-native-cli: 2.0.1
react-native: 0.51.0
How to solve it?
32
votes
3
answers
19k
views
React Native XCode Project Product Archive Fails with duplicate symbols for architecture arm64
Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols if I do not attempt to Archive but simply build a release version. The project ...
31
votes
4
answers
13k
views
React Native: Unwanted Black border on ipad 2 simulation
I am testing a new (simple) reactive native app, choosing ipad 2 as target in the simulator.
The loading screen shows full screen, but the first application screen (by react native) shows a big black ...
31
votes
6
answers
29k
views
How to migrate to Xcode 12.5
I'm not able to build a React Native project, which built correctly using Xcode 11, using Xcode 12.5.
I can no longer use Xcode 11 because only more current versions of Xcode carry the necessary API ...
31
votes
9
answers
25k
views
React Native Config.h not found
I'm beginner of React native developer.
After create new project then open it.
xcode is display error config.h file not found in mutex.h file. I'm also search in google and try possible solution but ...
30
votes
3
answers
61k
views
React-native iOS not showing images (pods issue)
I was installing a package in my react-native application (to be specific it was createMaterialTopTabNavigator from react-navigation) but after the installation succeed, something crash (error: @...
30
votes
13
answers
51k
views
React-Native IOS real device does not connect to Metro server
My Simulator works fine it connects to the development server first try. But on my real device I have to delete node modules, reinstall Podfiles, clean building folder and delete Derived Data then it ...
30
votes
8
answers
32k
views
Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
Since I update Xcode to Xcode 12, I've got this error when I build :
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
...
29
votes
13
answers
114k
views
A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.[ios, xcode]
I have android and ios app in react native which both uses webview to show webpage as application.
Since I had to change package name to deploy it on google play since first one package name was ...
29
votes
15
answers
40k
views
main.jsbundle does not exist. This must be a bug with.. main.jsbundle issue after upgrading to react-native 0.63
"react": "16.13.1",
"react-native": "0.63.0",
Encountered the below main.jsbundle does not exist. This must be a bug with issue when trying to archive after ...
29
votes
6
answers
22k
views
xcode using wrong node.js version
I am new to React Native. I used react-native init XXX to create a new project. When launch the xcodeproj, I got an error saying:
const setupEnvScript = /^win/.test(process.platform)
^^^^^
...
28
votes
4
answers
12k
views
Run react native app on Xcode 10
I get this error when i want to run my react native app hello world app on Xcode 10 (new beta version), can you help me?
The error :
error: Build input file cannot be found:
'/Users/nic/Documents/...
28
votes
17
answers
46k
views
React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2)
Environment
Mac OS X Version 10.11.3 (15D21)
Xcode Version 7.2 (7C68)
Simulator Version 9.2 (SimulatorApp-643)
react-native-cli 0.1.10
node v5.5.0
What I did before running the app
npm install -g ...
28
votes
7
answers
11k
views
Can't merge user_target_xcconfig for pod targets: ["Reanimated", "hermes-engine"]. Singular build setting CLANG_CXX_LIBRARY has different values
I've been running "pod install" in my project to connect my dependencies but I've been getting this error: Can't merge user_target_xcconfig for pod targets: ["Reanimated", "...