简体   繁体   中英

React-native iOS build is failed

The react-native iOS build is failed with following error.

GB-MAC-01s-MacBook-Pro:rrtest muruganandham.kuppan$ react-native run-ios
Found Xcode project rrtest.xcodeproj
Building using "xcodebuild -project rrtest.xcodeproj -configuration Debug -scheme rrtest -destination id=E7283C81-5F0D-4732-BF8B-19DB3C904DA2 -derivedDataPath build"
Ignoring unf_ext-0.0.7.5 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.5
▸ Running script 'Start Packager'
** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/rrtest.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

在此输入图像描述

I have tried few solutions, but no luck.

EDIT: Additional info 在此输入图像描述

I have changed the react native port to 8088 and modified it in project.

How I fixed the issue?

Get the process running in the port 8081

sudo lsof -i :8081

在此输入图像描述

and killed it.

sudo kill -9 336

*336 is the PID (Process ID)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM