I'm trying to start my react native app but builds failed. Push notification is already working in the app and running on other system.
Trying to run the app on following environment:
MacBook Pro: Intel i5
Node: 16.6
Xcode: 14.2
React: 16.8
React Native: 59.9
I keep getting this error:
Command Analyze failed with a nonzero exit code.
Related
Can someone please help me to understand why this error is coming up?
When i tried to run npx react-native run-ios.
With react native version 0.65.0 in my macOS Big Sur Version 11.6.5
I have also attached the error when i tried with xcode version 13.2.1
Error shown in cmd
and
Error shown in xcode version 13.2.1
i create the new React native 0.68 Project which is successfully build and run on xcode 13.3.1 but when i copy and past this project on another folder and run this project on xcode 13.3.1
then i am facing this error and my OS is macos Monterey version 12.0.1.
Command PhaseScriptExecution failed with a nonzero exit code
/bin/sh -c /Users/essmac/Library/Developer/Xcode/DerivedData/NassauTennisMobileApp-hbuvecnapzaxwackghdwmndhemau/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00017C40.sh
i have tried some solution which not work for me
solution
delete pod
install pod again
Any one can help me
React-native newbie here.
I am currently using MacBook Air M1 2020 w/ OS 11.6 and I have been encountering an issue with running the simulator after installing react-native-reanimated. Any other installations (e.g #react-navigation/bottom-tabs and #react-navigation/stack) work fine but when I try run (react-native run-ios) after installing react-native-reanimated, it gives the following error message:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/USERNAME/Library/Developer/Xcode/DerivedData/App-bsbiygstdsripxdqednowpxwwzst/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/arm64/UIResponder+Reanimated.o /Users/USERNAME/Documents/GitHub/ReactNative-Projects/App/node_modules/react-native-reanimated/ios/native/UIResponder+Reanimated.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods')
When I first install the package via
"npm install react-native-reanimated",
it throws a vulnerability issue saying there are
65 vulnerabilities (10 moderate, 30 high, 25 critical)
but there it doesn't cause any issue during "pod install" command.
Send help to this poor react-native newbie :( Been struggling with this issue for three days
Update react-native-reanimated to 2.3.0-beta.2 or higher.
I am new to react native and I am trying to run react native on IntelliJ. My Android emulator on IntelliJ works perfectly fine however, my iOS emulator doesn't work properly and I am using MacOS X. I'm encountering issues "error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening API.xcworkspace. Run CLI with --verbose flag for more details."
I have a React Native app and recently upgraded to React Native 0.55. I previously could run the command react-native run-ios --simulator="iPhone X" to launch the app in the Simulator. Now I cannot, but I can still run the app in Xcode using build and run.
Here is the error from the react-native run-ios --simulator="iPhone X" output:
▸ Compiling RCTBundleURLProvider.m
❌ /dev/node_modules/react-native/React/Base/RCTBundleURLProvider.m:15:53: use of undeclared identifier 'undefined'; did you mean 'underline'?
const NSUInteger kRCTBundleURLProviderDefaultPort = RCT_METRO_PORT;
^~~~~~~~~~~~~~
▸ Compiling RCTLayoutAnimationGroup.m
▸ Compiling RCTNavigator.m
▸ Compiling RCTTabBar.m
** BUILD FAILED **
The following build commands failed:
CompileC /dev/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTBundleURLProvider.o Base/RCTBundleURLProvider.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing Build/Products/Debug-iphonesimulator/MyApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
In case it helps, here's the output of react-native info:
Environment:
OS: macOS High Sierra 10.13.3
Node: 9.5.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.3
react-native: 0.55.0 => 0.55.0
What's wrong with my setup and how should I fix it?
As a workaround you should try
react-native run-ios --port 8088 or RCT_METRO_PORT=8081 react-native run-ios but unsure if that works.
RCT_METRO_PORT var was added in commit 33d710e8c58ef1dc69816a59ac1cf390894e7cb9 and looks like it breaks versions 0.54/0.55 to run ios apps from the cli.
In the meantime I continue using xcode to run my react-native apps.
Hopefully it can be patched or cherry picked or ultimately be fixed on the next major release.
There is an open GitHub issue about it.