Fail to build React Native - xcode

When I tried to run this command: react-native run-ios
The terminal returns this.
How to solve this?
Command /usr/bin/codesign failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CodeSign build/Build/Products/Debug-iphonesimulator/albums.app
(1 failure)

Related

Xcode 13.3 Build DocC Command CompileDocumentation failed with a nonzero exit code

Xcode Build DocC Document with Product-Build Documentation failed
Command CompileDocumentation failed with a nonzero exit code

Command PhaseScriptExecution failed with a nonzero exit code - React Native

Whenever I try to run npm-run-ios for any react native project I run into the following error with Xcode.
The following build commands failed: PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/keenanmapp/Library/Developer/Xcode/DerivedData/UnsplashSearch-ancvrrzszrqkahamhpgtfqwhhuns/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404
I tried removing the pods and reinstalling but nothing works.

CircleCI FBReactNativeSpec-generated.mm file not found

I am building an app on CircleCI. I have tried xcodebuild and fastlane scan. After dependencies successfully install, the follow build error occurs.
Testing failed:
Build input file cannot be found: '/Users/distiller/project/node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm'
** TEST FAILED **
[17:53:06]: Exit status: 65
[!] Error building the application. See the log above.
However, if I run the test command locally or SSH into CircleCI, then the build succeeds. What is the problem?

after update mac os to catalina ,I have some problem android studio and Xcode is not simulator (Flutter)

Android
FAILURE: Build failed with an exception.
Where:
Script '/Users/admin/Documents/flutterpath/packages/flutter_tools/gradle/flutter.gradle' line: 896
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/admin/Documents/flutterpath/bin/flutter'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 54s
XCODE Error : Command PhaseScriptExecution failed with a nonzero exit code
I already try to fix lock and unlock keychain.

React Native FAILURE: Build failed with an exception

I made the necessary setups for react native on windows. Then I created my project with the command "npx react-native init projectname". Then I ran my project with "npx react-native run-android" command but I get the following errors.
C:\Users\user\OneDrive\Masaüstü\mobile\project>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 967 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
:ReactNative:Unexpected empty result of running '[node, C:\Users\user\OneDrive\Masaüstü\mobile\project\node_modules\react-native\node_modules\#react-native-community\cli\build\bin.js, config]' command.
:ReactNative:Running '[node, C:\Users\user\OneDrive\Masaüstü\mobile\project\node_modules\react-native\node_modules\#react-native-community\cli\build\bin.js, config]' command failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\user\OneDrive\Masaustu\mobile\project\node_modules\#react-native-community\cli-platform-android\native_modules.gradle' line: 195
* What went wrong:
A problem occurred evaluating script.
> internal/modules/cjs/loader.js:969 throw err; ^Error: Cannot find module 'C:\Users\user\OneDrive\Masaüstü\mobile\project\node_modules\react-native\node_modules\#react-native-community\cli\build\bin.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15) at Function.Module._load (internal/modules/cjs/loader.js:842:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []}
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
:ReactNative:Unexpected empty result of running '[node, C:\Users\user\OneDrive\Masaüstü\mobile\project\node_modules\react-native\node_modules\#react-native-community\cli\build\bin.js, config]' command.
C:\Users\user\OneDrive\Masaüstü\mobile\project>
First, you have to install the latest version of #react-native-community/cli-platform-android
npm i #react-native-community/cli-platform-android
then go to the android directory and clean gradlew by the following command
cd android && gradlew clean
go back to your main directory and run app
cd.. && react-native run-android

Resources