react-native-webview commands failed to compile, how to fix? - ios

someone has fixed or saw this issue?
I'm using last version of (react-native) and also macOS Catalina.
I did install react-native-webview by yarn and after into the (./ios) folder I had install the pods.
So build failed, after react-native run-ios.
The following build commands failed:
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Project-cnketoyhxyitfqbbcdkdvhpuajey/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-webview.build/Objects-normal/x86_64/RNCWebView.o /Users/mymac/Desktop/React/project/node_modules/react-native-webview/apple/RNCWebView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Are you running the latest version of Xcode?
See react-native-webview issue #1399

Related

PhaseScriptExecution failed when trying to run React Native app

I am a newcomer when it comes to React Native. However, when I tried to follow the steps that React Native provided: Environment Setup (I chose to use React Native CLI, Mac and iOS). Everything went fine until I tried to run the command
npx react-native run-ios
This is the error log that I received in the Terminal:
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/phillip/Library/Developer/Xcode/DerivedData/myproject-csoqwegnbwhthjczvzcjwqasamef/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00018F30.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)
I am using a MacBook Air with
M1 chip
MacOS Monterey
Xcode Version 14.2
node v19.6.0
Metro v0.73.7
I searched for a bunch of solutions, including the node versions, nvm, uninstalling build folder and use pod install, commenting post_install function inside Podfile file, but nothing works so far. I am using Node v19.6.0 and this is my which node output: /Users/username/.nvm/versions/node/v19.6.0/bin/node.
I also tried solutions from this reference: React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code but nothing has worked
Any help would be appreciated, thank you.

React Native run IOS build failure

I'm new to developing react native apps for iOS. I created a project using react-native init. I have managed to install all the requirements mentioned on that page. However, I ran into an issue while installing cocoa pods, but I installed it with home-brew. But now, I run into this build issue.
I have attached the issue which showed up in the terminal as well as the screenshot of the build error on Xcode. Any help would be appreciated. Thank you.
terminal build fail code
The following build commands failed:
CompileC /Users/ahyanawaz/Library/Developer/Xcode/DerivedData/Store-bekhqxqflgsqtyheijdxkrbwrksk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Core.build/Objects-normal/x86_64/RCTDatePickerManager.o /Users/ahyanawaz/Desktop/Store/node_modules/react-native/React/Views/RCTDatePickerManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Xcode build time error
img01
img02

React-native iOS app not running on terminal and Xcode also

Hello I'm Beginner in React Native,
I've installed everything did they said.
Now I've created application using below command
react-native init TempApp
Application is created successfully
Now I try to run application using below command
npx react-native run-ios
I got below error
** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64 /Users/encora/Documents/Paresh\ Workspace/React\ Native\ Projects/TempApp/ios/Pods/YogaKit/YogaKit/Source/YGLayoutExtensions.swift
CompileC /Users/encora/Library/Developer/Xcode/DerivedData/TempApp-fnxepatpnxxjncbfdflpymtfxxag/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/encora/Documents/Paresh\ Workspace/React\ Native\ Projects/TempApp/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Even I try to run application from Xcode also, but I still get error in Xcode also.
Can anyone help me please how to run first react application on Mac
Try this -
Close the Xcode,delete node_modules folder and then run commands in project directory
npm install / yarn install
cd ios && pod install --repo-update
npx react-native run-ios
Option 3 is optional either run project from terminal or from Xcode

New React-Native Project: Build fails (ios)

I'm using:
react-native-cli: 2.0.1
react-native: 0.62.2
Xcode: 11.3.1
Creating a react-native project (react-native init GetAway) and starting it with
npx react-native run-ios throws an build error:
The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/sercan/Desktop/Arbeit/Urlaub/rescue/GetAway/ios/Pods/YogaKit/YogaKit/Source/YGLayoutExtensions.swift
(2 failures)
I have no clue, why it comes to an build error, to a new created project.
If you have any ideas to solve this problem, please let me know.
Thanks in Advance
Edit: Link for full error message: https://docs.google.com/document/d/1o6tj9OrWmH-OZ5rCkYxhQTi-RYH36S5u36zpmBHHY3E/edit?usp=sharing
In my macOS system, this build error was resolved by restarting the computer. The issue has been reported at https://github.com/facebook/react-native/issues/28777, where I also found this workaround.
I resolved this by uninstalling the globally installed react-native-cli.
The react-native environment setup docs also state this.
React Native Environment Setup Docs
Screenshot from the environment setup docs
i fixed something similar by updating my xcode to 13 which requires that you update your macos to 11

iOS Cordova project: Adding urbanairship-cordova causes error 65 on build

Cordova 9.0
Cordova-ios 5.0.1
urbanairship-cordova 8.0.0
Xcode 10.3 (10G8)
CocoaPods 1.7.5
macOS 10.14.5
As soon as I add urbanairship-cordova to my cordova project I can no longer build the project.
While adding I get the warning Installing "urbanairship-cordova" for ios urbanairship-cordova depends on UrbanAirship-iOS-SDK, which may conflict with another plugin. UrbanAirship-iOS-SDK#11.1.0 is already installed and was not overwritten.
When I build the project with either cordova build ios --buildFlag="-UseModernBuildSystem=0" --release --buildConfig ../build.json or cordova build ios --release --buildConfig ../build.json
I get this error
The following build commands failed:
CompileC /Users/MyName/Library/Developer/Xcode/DerivedData/AppName-ggadyhbufqruwffmcouvwgawpjgi/Build/Intermediates.noindex/AppName.build/Release-iphonesimulator/AppName.build/Objects-normal/i386/UAMessageViewController.o AppName/Plugins/urbanairship-cordova/UAMessageViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
Uninstall + Reinstalling CocoaPods didn't help.
When I remove the ios plattform and add it again (as suggested in some postings) I get the error
Installing "urbanairship-cordova" for ios Running command: pod install --verbose Failed to install 'urbanairship-cordova': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/Users/.../appname-/source/node_modules/cordova-common/src/superspawn.js:135:23) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:961:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) pod: Command failed with exit code 1
pod repo update didn't help either
As soon as I remove urbanairship-cordova everything works fine.
I want to be able to use urbanairship-cordova in my iOS Cordova app.
I'm really desperate :-(
using urbanairship-cordova 7.6 solved the problem
cordova plugin remove urbanairship-cordova
cordova plugin add urbanairship-cordova#7.6.0

Resources